Create a small library to connect to an existing COM instance of a specific comercial application ( SAP2000 ).
The project consists of 2 units in Delphi. One making the acess to the application in Late binding, and the other in early binding.
In each one, it is necessary to see if there is a windows process running, it is necessary to make sure we get the active COM instance of the application and from there do something with it.
In case the application do not create automatically a COM object on normal start, it is necessary to create an auxiliary windows service to make sure each time someone trys to start the application manually, the process is aborted, and the application is launched using the creatObject or early binding, making sure that when the application is running we have an active object also, so that we can get it with our Delphi interface.
More details will be given after.