A silly question, my fortran project is a Windows DLL. It exports a function called 'polyfit'. Calling the function from excel works fine. However, when I want to call this function from my own DLL .. I'm not even able to compile. Error is 'unresolved external symbol'.
I guess I'm not allowed to call from my own DLL a function which is exported. Then how should I do it ?
The export code is the following :
!MS$IF DEFINED (_DLL) !MS$ATTRIBUTES DLL EXPORT :: polyfit !MS$ATTRIBUTES STDCALL,ALIAS:'polyfit' :: polyfit .... arguments .... !MS$ENDIF
The calling code from inside fortran is simply :
CALL POLYFIT( ....)