contents   index   previous   next



Compiler-specific details regarding DLLs, calling conventions and name-mangling

 

From the previous sections, you have seen that to make a Fortran subroutine callable from Visual Basic, you need to instruct the Fortran compiler to perform the following operations:

 

Add the necessary code to make the subroutine conform to the STDCALL convention.

 

Create a DLL file containing the Fortran subroutine as a publicly available procedure (i.e. export the subroutine).

 

Make the necessary name-mangling changes so the exported subroutine can be accessed with a friendly name.

 

This section gives a general review of how these operations are performed in each of the compilers supported by f90VB. It is important to note that the methods explained here are not the only ways to achieve these objectives. They are, however, the methods that work best in our experience. Also note that in addition to the information provided here, you should consult the documentation included with your compiler.

 

Absoft Pro Fortran