Board index » delphi » Q: Callback from FORTRAN DLL
P.B...@gamma.rug.nl (Peter Boer)
![]() Delphi Developer |
Tue, 29 Dec 1998 03:00:00 GMT
Q: Callback from FORTRAN DLLPLEASE HELP !!! Can someone help me with this problem. I have a Delphi program containing a function WriteOut, and Delphi function: function WriteOut(a:integer):integer: export; The pascal program loads the DLL and calls a routine. In this routine I The first problem is that de DLL needs to know the address of the WriteOut In the WATCOM Help I found a small piece of code, but that is not enough integer*4 pCb, fpProc pCb = GetProc16( A_Function, GETPROC_callbacktype ) * do stuff call Do_it( ..., fpProc, ... ) * do more stuff call FreeProcInstance( fpProc ) I hope that you can help me. Peter Boer |