Author Topic: TridLib - TrID_LoadDefsPack  (Read 10893 times)

revdrmarsh

  • Newbie
  • *
  • Posts: 11
TridLib - TrID_LoadDefsPack
« on: June 06, 2008, 07:08:41 PM »
If I try to pass a file name with the fully qualified location of TriDDefs.TRD, no definitions are loaded.  If I just pass a null string AND the TriDDefs.TRD is in the same directory as my program, then it loads definitions.  Is there a trick to passing a fully qualified location?

Thanks

Mark0

  • Administrator
  • Hero Member
  • *****
  • Posts: 2743
    • Mark0's Home Page
Re: TridLib - TrID_LoadDefsPack
« Reply #1 on: June 06, 2008, 07:35:03 PM »
Hi!

TrID_LoadDefsPack() takes just a path as the string parameter; the definitions file itself is always "TrIDDefs.TRD". It's just a simple limitation of the free version of TrIDLib to keep the def filename recognizable.
So for example TrID_LoadDefsPack("c:\my program\") will load "c:\my program\TrIDDefs.TRD".

Bye!
« Last Edit: June 06, 2008, 08:15:58 PM by Mark0 »

revdrmarsh

  • Newbie
  • *
  • Posts: 11
Re: TridLib - TrID_LoadDefsPack
« Reply #2 on: June 09, 2008, 04:07:37 PM »
PERFECT!!

Thanks!