Francois Piette wrote:
> I have a D7 program using runtime packages (rtl70 and vcl70).
> Is there a way to programmatically know which file is actually loaded and
> get his version info resource ?
> This is to solve a problem when an old and a new rtl70/vcl70 versions exists
> on a given system (D7/SP1 doesn't like to work with the packages of
> D7/no_sp).

To find out where rtl70.bpl is, first use GetModuleHandle('rtl70.bpl') 
to get the handle to that module. Then call GetModuleFileName to get the 
full path to the file.

There should be lots of examples of getting the version information for 
a file. They will use GetFileVersionInfo and VerQueryValue.

-- 
Rob
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to