How do I achieve early-binding with MIDAS servers?

If you're using DCOMConnection, you can take full advantage of early-binding. The syntax is:

var
  MyAppServer: IMyAppServer;
...
  MyAppServer := IDispatch(DCOMConnection1.AppServer) as IMyAppServer;



SocketConnection achieves it's implementation through the use of IDispatch. Therefore, you can
not have early-binding in it's true sense. You can, however, use dispid binding:

var
  MyAppServerDisp: IMyAppServerDisp;
...
  MyAppServerDisp := IMyAppServerDisp(IDispatch(SocketConnection1.AppServer));