2.6.4 Creating the Module-Definition File

The module-definition file must contain the module definitions for Generic. Name the file GENERIC.DEF. It should look like this:

;module-definition file for Generic -- used by LINK.EXE

NAME    Generic       ; application's module name

DESCRIPTION 'Sample Microsoft Windows 3.1 Application'

EXETYPE WINDOWS       ; required for all Windows applications

STUB    'WINSTUB.EXE' ; generates error message if application
                      ; is run without Windows

CODE    MOVEABLE DISCARDABLE; code can be moved, discarded/reloaded

;DATA must be MULTIPLE if program can be invoked more than once.

DATA    MOVEABLE MULTIPLE

HEAPSIZE  1024
STACKSIZE 5120  ; recommended minimum for Windows applications

; All functions that will be called by any Windows function
; must be exported.

EXPORTS
    MainWndProc    @1  ; name of window-processing procedure
    About          @2  ; name of About processing procedure