>> 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).

> This is just off the top of my head, but I seem to remember that those
> runtime packages (if you can locate them) are essentially just DLLs.
> 'Right-click|Properties|Version'. Programmatically, all you'd need to do
> is find some sort of process-dependancy or process-walker. It's
> definitely possible (check out http://protools.cjb.net/) to find out
> which bpl (DLL) your app has actually loaded from which folder, and then
> come down on that file to get the version info out of it.

As you said, there are several tools (I use ProcessExplorer) to find out 
which DLL are loaded by an application. But that's not my exact problem.

My problem is - from the application itself - check the rtl70.bpl version. 
Not by loading another one, but by getting hand on the already loaded bpl 
file. The runtime /has/ somewhere that handle. That's what I need.

--
[EMAIL PROTECTED]
The author for the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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

Reply via email to