Skip to content

Commit 89f6227

Browse files
committed
Switched to small memory model. Added EXETYPE and REALMODE to module
definition file. Added "void" to methods which don't take parameters.
1 parent dba7aba commit 89f6227

6 files changed

Lines changed: 131 additions & 81 deletions

File tree

MainWnd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
8080
}
8181

8282
/* Register a class for our main window */
83-
BOOL RegisterMainWindowClass()
83+
BOOL RegisterMainWindowClass(void)
8484
{
8585
WNDCLASS wc = {0};
8686

@@ -96,7 +96,7 @@ BOOL RegisterMainWindowClass()
9696
}
9797

9898
/* Create an instance of our main window */
99-
HWND CreateMainWindow()
99+
HWND CreateMainWindow(void)
100100
{
101101
HWND hWnd;
102102
HMENU hSysMenu;

MainWnd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
LRESULT CALLBACK MainWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam);
88

99
/* Register a class for our main window */
10-
BOOL RegisterMainWindowClass();
10+
BOOL RegisterMainWindowClass(void);
1111

1212
/* Create an instance of our main window */
13-
HWND CreateMainWindow();
13+
HWND CreateMainWindow(void);
1414

1515
#endif

Win16App.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
NAME Win16App
22
DESCRIPTION 'Win16 Example Application'
3+
EXETYPE WINDOWS 3.00
4+
REALMODE
35
STUB 'WINSTUB.EXE'
46
CODE MOVEABLE PRELOAD DISCARDABLE
57
DATA MOVEABLE PRELOAD MULTIPLE

Win16App.mak

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ D_RCDEFINES = /d_DEBUG
1010
R_RCDEFINES = /dNDEBUG
1111
ORIGIN = MSVC
1212
ORIGIN_VER = 1.00
13-
PROJPATH =
13+
PROJPATH =
1414
USEMFC = 0
1515
CC = cl
1616
CPP = cl
@@ -22,12 +22,12 @@ CPPUSEPCHFLAG =
2222
FIRSTC = ABOUTDLG.C
2323
FIRSTCPP =
2424
RC = rc
25-
CFLAGS_D_WEXE = /nologo /W3 /Gf /Zi /AM /Od /D "WINVER"="0x0300" /D "_DEBUG" /FR /Gw /Fd"WIN16APP.PDB"
26-
CFLAGS_R_WEXE = /nologo /W3 /Gf /AM /O1 /D "WINVER"="0x0300" /D "NDEBUG" /FR /Gw
25+
CFLAGS_D_WEXE = /nologo /W3 /Gf /Zi /Od /D "WINVER"="0x0300" /D "_DEBUG" /FR /Gw /Fd"WIN16APP.PDB"
26+
CFLAGS_R_WEXE = /nologo /W3 /Gf /O1 /D "WINVER"="0x0300" /D "NDEBUG" /FR /Gw
2727
LFLAGS_D_WEXE = /NOLOGO /NOD /PACKC:61440 /ALIGN:16 /ONERROR:NOEXE /CO
2828
LFLAGS_R_WEXE = /NOLOGO /NOD /PACKC:61440 /ALIGN:16 /ONERROR:NOEXE
29-
LIBS_D_WEXE = oldnames libw mlibcew commdlg.lib olecli.lib olesvr.lib shell.lib
30-
LIBS_R_WEXE = oldnames libw mlibcew commdlg.lib olecli.lib olesvr.lib shell.lib
29+
LIBS_D_WEXE = oldnames libw slibcew commdlg.lib olecli.lib olesvr.lib shell.lib
30+
LIBS_R_WEXE = oldnames libw slibcew commdlg.lib olecli.lib olesvr.lib shell.lib
3131
RCFLAGS = /nologo
3232
RESFLAGS = /nologo /30
3333
RUNFLAGS =

0 commit comments

Comments
 (0)