Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getProcAddress and LoadLibrary in g77

Status
Not open for further replies.

trnsys

Programmer
Jul 30, 2010
1
US
Hello, I wrote a Fortran program (in IVF 11) that successfully finds, loads, and calls a DLL (also Fortran written and compiled in IVF11). I need to migrate my calling program to G77 and when I compile, the G77 compiler trips right away on

USE dfwin
USE dflib

which are the libraries that contain references to the LoadLibrary(), getProcAddress(), and pointer structures that I am using.

Does anyone have an example of loading and calling a DLL with some code that can be compiled in G77?
Thanks in advance,
David
 
USE dfwin and USE dflib are specific to CVF/IVF. Also the USE statement isn't F77: it is F90.

LoadLibrary lives in Windows kernel32.lib which in turn uses kernel32.dll

Do you have to use G77 - I think that project has been abandoned in favour of gfortran. You could use gfortran or g95.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top