> Message: 1 > Date: Thu, 1 Feb 2007 13:03:35 +0100 > From: "Francois Piette" <[EMAIL PROTECTED]> > Subject: Runtime package version > To: <[email protected]> > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > 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). >
Hi Francois, 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. Doing it YOURSELF is another story, but that programmers tools website used to have the odd bit of shared code too, so you might find something useful there. Hope that helps! :) John. _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

