How to create and register a MIDAS application server COM program in Delphi
Delphi provides some wizards (such as: RemoteDataModule, Automation Object, TypeLibrary) to automatically generate the structure of the COM program.
(Method 1) Create a normal application server
Create a new ordinary project, and then automatically create a new COM server structure through New->Other->Multitier->Remote DataModule.
Note: To register the created MIDAS application server, you can run the application or run the program using the /REGSERVER switch.
(Method 2) Create an NTService-type application server, so that the application server can be started without logging into the system, avoiding the problem of inaccessible application server caused by power outage and restart.
Create a new NTService project, and then automatically create a new COM server structure through New->Other->Multitier->Remote Data Module.
Note: To register the created NTService server, run the program through the /install switch.
Note: The MIDAS program requires the client to register the MIDAS.DLL and STDVCL40.DLL dynamic libraries.