Been looking for the best way to do this now for some time but no answers.
I'm using Windows XP and Delphi 6.
I have basically 2 applications which I want identical source code for. The only difference is that the 2 application look at different SQL servers for their data. The SQL server is specified in an .ini file that the Delphi reads on start-up.
My problem is that I would like to be able to switch from one application to the other from within the application itself (application 1 switches to application 2).
I know I can rename the application before compiling but I need the source code the same. I also can not rename the .exe file after compiling as the .ini file looks at this .exe name when running. I have tried to read the application name from the .ini file but again this does not work.
Any help would be great.
register
a custom message which I would then broadcast and on its handler I would bring the instance to front, but what if there'll be e.g. three instances of the application ? – TLama