Skip to content

Commit

Permalink
Prepare for version 1.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinPayne committed Jul 7, 2011
0 parents commit 010c15f
Show file tree
Hide file tree
Showing 12 changed files with 625 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
# Ignore compiled binaries
*.exe
*.map
*.obj
*.res
Binary file added App.ico
Binary file not shown.
27 changes: 27 additions & 0 deletions Makefile
@@ -0,0 +1,27 @@
# This Makefile will build the Win16 test application.

HEADERS = resource.h callbacks.h
OBJS = winmain.obj callbacks.obj
RES = resource.res

CC = cl16.exe
CFLAGS = /nologo /c /D WINVER=0x0300 /Gsw /Gf /G2 /Os /W2 /Zp
LINK = link16.exe
RC = rc16.exe
EXE = Win16App.exe
DEF = Win16App.def

all: Win16App.exe

Win16App.exe: $(OBJS) $(RES) $(DEF)
$(LINK) /nologo /align:16 $(OBJS),$(EXE),,libw.lib slibcew.lib,$(DEF)
$(RC) /nologo -30 $(RES) $(EXE)

clean:
del $(OBJS) $(RES) $(EXE)

%.obj: %.c $(HEADERS)
$(CC) $(CFLAGS) $<

resource.res: resource.rc App.ico resource.h
$(RC) /nologo /r resource.rc
41 changes: 41 additions & 0 deletions Readme.txt
@@ -0,0 +1,41 @@
Win16 Test Application

This application is an example 16�bit Windows application written in C. It
accompanies an article from my web site, located at
http://www.transmissionzero.co.uk/computing/win16-apps-in-c/.

To build the application with Microsoft�s Visual C compilers, simply open a
command prompt, change to the directory containing the Makefile, and run
�nmake�. Note that you will need the 16�bit C compiler, linker, and resource
compiler�it won�t work with 32�bit compilers! Also note that the Makefile may
require some small modifications if you use a make utility other than �nmake�.

To build the application in Open Watcom, simply open the project up in the IDE,
and choose the �Make� option from the �Targets� menu.

Disclaimer

This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.

Terms of Use

There is no specific license attached to the use this application. You are free
to use it however you see fit, whether for commercial or non-commercial
purposes. The intention is that you use it as a starting point for building
Windows applications, so that you don�t have to write all of your applications
from scratch. You are encouraged to modify it to suit your needs as a Windows
application template, and how you license any applications built with it is
entirely up to you. Of course, you must still comply with the licensing
conditions of the tools you are using to build the application.

Problems?

If you have any problems or questions, please get in contact via
http://www.transmissionzero.co.uk/contact/. Please ensure that you read the
article at http://www.transmissionzero.co.uk/computing/win16-apps-in-c/ before
sending any questions.

Martin Payne
2011�07�06
9 changes: 9 additions & 0 deletions Win16App.def
@@ -0,0 +1,9 @@
NAME Win16App
DESCRIPTION "Win16 Test Application"
STUB "WINSTUB.EXE"
CODE MOVEABLE PRELOAD DISCARDABLE
DATA MOVEABLE PRELOAD MULTIPLE
HEAPSIZE 1024
STACKSIZE 4096
EXPORTS MainWndProc
AboutDialogProc
273 changes: 273 additions & 0 deletions Win16App.tgt
@@ -0,0 +1,273 @@
40
targetIdent
0
MProject
1
MComponent
0
2
WString
4
WEXE
3
WString
5
w_6en
1
0
0
4
MCommand
0
5
MCommand
0
6
MItem
12
Win16App.exe
7
WString
4
WEXE
8
WVList
0
9
WVList
0
-1
1
1
0
10
WPickList
10
11
MItem
3
*.c
12
WString
4
COBJ
13
WVList
4
14
MRState
15
WString
3
WCC
16
WString
24
?????Space optimizations
0
1
17
MRState
18
WString
3
WCC
19
WString
26
?????Fastest possible code
0
0
20
MRState
21
WString
3
WCC
22
WString
9
??6??8086
0
0
23
MRState
24
WString
3
WCC
25
WString
10
??6??80286
0
1
26
WVList
0
-1
1
1
0
27
MItem
11
callbacks.c
28
WString
4
COBJ
29
WVList
0
30
WVList
0
11
1
1
0
31
MItem
9
winmain.c
32
WString
4
COBJ
33
WVList
0
34
WVList
0
11
1
1
0
35
MItem
5
*.def
36
WString
3
NIL
37
WVList
0
38
WVList
0
-1
1
1
0
39
MItem
12
Win16App.def
40
WString
3
NIL
41
WVList
0
42
WVList
0
35
1
1
0
43
MItem
3
*.h
44
WString
3
NIL
45
WVList
0
46
WVList
0
-1
1
1
0
47
MItem
11
callbacks.h
48
WString
3
NIL
49
WVList
0
50
WVList
0
43
1
1
0
51
MItem
10
resource.h
52
WString
3
NIL
53
WVList
0
54
WVList
0
43
1
1
0
55
MItem
4
*.rc
56
WString
5
WRESC
57
WVList
0
58
WVList
0
-1
1
1
0
59
MItem
11
resource.rc
60
WString
5
WRESC
61
WVList
0
62
WVList
0
55
1
1
0

0 comments on commit 010c15f

Please sign in to comment.