Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am assuming you have the external dll and also the fortran code that was used to compile this dll (say we name this dll A). What you can do in your fortran code is call the subroutines that are in the dll A. Say the dll A has a subroutine called plcmodel(mc,slot), you can in your fortran code, call this subroutine plcmodel with proper arguments defined. You can then use the environment manager to compile both the fortran codes into one dll say dsusr.dll and then share with whoever you want to.

If you only have the dll A and not the fortran code that was used to compile the dll A, then you can't do what you intend to. However if you have the object file, you can do the above.

If you want to know which subroutines are called in the dll A, you can use a free software called dependency Walker that tells you what subroutines are exported in the dll.