Mark0's Forum

Software => TrID File Identifier => Topic started by: revdrmarsh on June 06, 2008, 07:08:41 PM

Title: TridLib - TrID_LoadDefsPack
Post by: revdrmarsh 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
Title: Re: TridLib - TrID_LoadDefsPack
Post by: Mark0 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!
Title: Re: TridLib - TrID_LoadDefsPack
Post by: revdrmarsh on June 09, 2008, 04:07:37 PM
PERFECT!!

Thanks!