## Windows-specific files

wxWindows application compilation under MS Windows requires at least two extra files, resource and module definition files.

Resource file
Module definition file

### Resource file

The least that must be defined in the Windows resource file (extension RC) is the following statement:

    rcinclude "wx/msw/wx.rc"

which includes essential internal wxWindows definitions. The resource script may also contain references to icons, cursors, etc., for example:

    wxicon icon wx.ico

The icon can then be referenced by name when creating a frame icon. See the MS Windows SDK documentation.

Note: include wx.rc after any ICON statements so programs that search your executable for icons (such as the Program Manager) find your application icon first.

### Module definition file

A module definition file (extension DEF) is required for 16-bit applications, and looks like the following:

    NAME         Hello
    DESCRIPTION  'Hello'
    EXETYPE      WINDOWS
    STUB         'WINSTUB.EXE'
    CODE         PRELOAD MOVEABLE DISCARDABLE
    DATA         PRELOAD MOVEABLE MULTIPLE
    HEAPSIZE     1024
    STACKSIZE    8192

The only lines which will usually have to be changed per application are NAME and DESCRIPTION.