cobext.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
COBOL DLL Definition File
                                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     Use the Create Definition File for DLL option to produce a module-
     definition file which can be used if you create a dynamic-link
     library from a .OBJ file. The definition file has the extension
     .DFA and the base name of the project.
 
     This option can be used only if the project consists of a single
     COBOL program. If the project has more than one COBOL program, you
     cannot use this option.
 
     Instead, you should create your own module-definition file using
     the base name of the project and the extension .DFA. For example,
     if the name of the project is TEST, you should create a definition
     file called TEST.DFA.
 
     A definition file used when linking for Animation does not need to
     be specified in the program list.
 
     The module-definition file contains the following lines:
 
          LIBRARY INITINSTANCE
          PROTMODE
          DATA NONSHARED
          EXPORTS entry-point @number
 
     An EXPORTS line is created for the PROGRAM-ID and for each ENTRY
     statement in the program, with <entry-point> representing the name
     of the entry point and <number> a unique ordinal starting at 1.
 
     Command-line directive: DEFFILE"$(PROJ).DFA"
                                    -♦-
                                    -♦-