TridLib - TrID_LoadDefsPack

Started by revdrmarsh, June 06, 2008, 07:08:41 PM

Previous topic - Next topic

revdrmarsh

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

#1
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!

revdrmarsh