The situation is already obvious:
The preferred method of calling AutoCAD in Delphi is ActiveX, and it can take advantage of its powerful database functions to achieve the perfect combination of AutoCAD and SQL Server, AutoCAD uses DBConnect, Delphi with BDE!
In fact, the call between Delphi and Fortran is already very simple: 1, Fortran makes a DLL2. Fortran makes COM Server
Delphi is also very simple between Matlab: 1. Combuilder, then Delphi Import DataType Library. 2. The OLE server method 2 that directly calls MATLAB can call MATLAB graphics function, but cannot be detached from the MATLAB environment 1, but the resulting graphic is figure. . .
The call between Fortran and MATLAB is obvious: 1. Fortran's original code made MEX to call in Matlab! 2. Fortran calls MATLAB engine (efficiency problem, generally not!)
Because both are numerical calculations, they can do COM objects to be used for external calls or Fortran to make a DLL, while Matlab makes COM.