DLL with PROGRAM Statement Fails to LoadLast reviewed: July 19, 1995Article ID: Q131498 |
The information in this article applies to:
SYMPTOMSIf a FORTRAN DLL contains a PROGRAM statement or other main section of code, programs calling the DLL fail to load it; they return an error. The error returned depends on the program.
CAUSEA DLL should not have a PROGRAM statement.
STATUSThis behavior is by design.
MORE INFORMATION
Sample Code to Demonstrate BehaviorC Compile options needed: /Gw /Aw C C DLL functions and subroutines SUBROUTINE SubroutineOne()
...
END
INTEGER*4 FUNCTION FunctionOne()
...
END
C The code below is not needed for a DLL
PROGRAM MainProgram
...
END
|
Additional reference words: 1.00 1.50 1.51 1.52 5.10
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |