4.8.1.2. Description of created source and header files

C/C++ Files

  • DllFunc.h, DllFunc.cpp

    These files contain the function definitions. Implement the userr codes in the DllFunc.cpp file.

  • DllMain.h, DllMain.cpp

    These files are the main DLL header and source files that contain the definition of DllMain managed by windows. User must leave this program as it is.

  • StdAfx.h, StdAfx.cpp

    These files are used to build a precompiled header file and StdAfx.obj file managed by MFC. User must leave this program as it is.

FORTRAN Files

  • DllFunc.for, SYSCAL.f

    These files contain the function definitions. Implement the userr codes in the DllFunc.for file.

Note

To create the “USUB DLL” using header file (”*.FI”) with Intel fortran compiler. Reference the “[REFERENCE]” Notation in following table.

SYSCAL.F

SYSCAL.FI

SUBROUTINE**SYSFNC(USP1,USP2,USP3,USP4,USP5)!DEC$ ATTRIBUTES DLLIMPORT,STDCALL::SYSFNC**CHARACTER *(*)USP1[REFERENCE]**INTEGER***4 USP2(*)**INTEGER***4 USP3**DOUBLE PRECISION**USP4[REFERENCE]**LOGICAL** USP5[REFERENCE]**END** SUBROUTINE

SUBROUTINE SYSFNC(USP1,USP2,USP3,USP4,USP5) !DEC$ ATTRIBUTES DLLIMPORT, STDCALL::SYSFNC !DEC$ ATTRIBUTES REFERENCE::USP1, USP4, USP5 CHARACTER*(*) USP1 INTEGER*4 USP2(*) INTEGER*4 USP3 DOUBLE PRECISION USP4 LOGICAL USP5 END SUBROUTINE