How to register an automation enabled application in the ROT when it's started from the command line.
-
Hi All, I have an application generated by the VS2005 AppWizard so that it has Automation enabled and I've setup the interface so it all works correctly. However, I also have the app accepting command line parameters when starting from the command line(which it mainly is since it's fired up from a Java servlet). The app gets called so many times I only want one instance of it to exist at a time so as to cut down on system resource usage. What I want to do is register the IDispatch of the automation object with the ROT when the app is first started up with the command line. That way when a user starts the app again I can check with the ROT to see if an instance of my app is running. If it is, I just get the IDispatch out of the ROT and pass the parameter values to the running instance via the methods on it. I then shut down my app before I've completed assigning all the necessary resources to it. So my question is: How do I get the IDispatch to my app if it has been started with the command line? Thanks very much for any help Thomas
Cheers Tom Philosophy: The art of never getting beyond the concept of life. Religion: Morality taking credit for the work of luck.