Create the Module-Definition File

The module-definition file must contain the module definitions for Generic. Name the file GENERIC.DEF and make sure it looks like this:

;module-definition file for Generic

NAME Generic ; Application's module name

DESCRIPTION 'Sample Microsoft Windows Application'

EXETYPE WINDOWS 3.0 ; Required for all Windows applications

STUB 'WINSTUB.EXE' ; Generates error message if application

; is run without Windows

CODE MOVABLE DISCARDABLE; Code can be moved in memory and discarded/reloaded

DATA MOVABLE MULTIPLE ; DATA must be MULTIPLE if

; program can be invoked more than once

HEAPSIZE 1024

STACKSIZE 5120 ; Recommended minimum for Windows applications

; All functions that will be called by any Windows routine

; MUST be exported.

EXPORTS

MainWndProc @1 ; name of window-processing function

About @2 ; name of About processing function