Skip to content

Commit 010c15f

Browse files
committed
Prepare for version 1.0.
0 parents  commit 010c15f

12 files changed

Lines changed: 625 additions & 0 deletions

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Ignore compiled binaries
2+
*.exe
3+
*.map
4+
*.obj
5+
*.res

App.ico

1.05 KB
Binary file not shown.

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This Makefile will build the Win16 test application.
2+
3+
HEADERS = resource.h callbacks.h
4+
OBJS = winmain.obj callbacks.obj
5+
RES = resource.res
6+
7+
CC = cl16.exe
8+
CFLAGS = /nologo /c /D WINVER=0x0300 /Gsw /Gf /G2 /Os /W2 /Zp
9+
LINK = link16.exe
10+
RC = rc16.exe
11+
EXE = Win16App.exe
12+
DEF = Win16App.def
13+
14+
all: Win16App.exe
15+
16+
Win16App.exe: $(OBJS) $(RES) $(DEF)
17+
$(LINK) /nologo /align:16 $(OBJS),$(EXE),,libw.lib slibcew.lib,$(DEF)
18+
$(RC) /nologo -30 $(RES) $(EXE)
19+
20+
clean:
21+
del $(OBJS) $(RES) $(EXE)
22+
23+
%.obj: %.c $(HEADERS)
24+
$(CC) $(CFLAGS) $<
25+
26+
resource.res: resource.rc App.ico resource.h
27+
$(RC) /nologo /r resource.rc

Readme.txt

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
Win16 Test Application
2+
3+
This application is an example 16�bit Windows application written in C. It
4+
accompanies an article from my web site, located at
5+
http://www.transmissionzero.co.uk/computing/win16-apps-in-c/.
6+
7+
To build the application with Microsoft�s Visual C compilers, simply open a
8+
command prompt, change to the directory containing the Makefile, and run
9+
�nmake�. Note that you will need the 16�bit C compiler, linker, and resource
10+
compiler�it won�t work with 32�bit compilers! Also note that the Makefile may
11+
require some small modifications if you use a make utility other than �nmake�.
12+
13+
To build the application in Open Watcom, simply open the project up in the IDE,
14+
and choose the �Make� option from the �Targets� menu.
15+
16+
Disclaimer
17+
18+
This program is distributed in the hope that it will be useful, but WITHOUT ANY
19+
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
20+
PARTICULAR PURPOSE.
21+
22+
Terms of Use
23+
24+
There is no specific license attached to the use this application. You are free
25+
to use it however you see fit, whether for commercial or non-commercial
26+
purposes. The intention is that you use it as a starting point for building
27+
Windows applications, so that you don�t have to write all of your applications
28+
from scratch. You are encouraged to modify it to suit your needs as a Windows
29+
application template, and how you license any applications built with it is
30+
entirely up to you. Of course, you must still comply with the licensing
31+
conditions of the tools you are using to build the application.
32+
33+
Problems?
34+
35+
If you have any problems or questions, please get in contact via
36+
http://www.transmissionzero.co.uk/contact/. Please ensure that you read the
37+
article at http://www.transmissionzero.co.uk/computing/win16-apps-in-c/ before
38+
sending any questions.
39+
40+
Martin Payne
41+
2011�07�06

Win16App.def

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
NAME Win16App
2+
DESCRIPTION "Win16 Test Application"
3+
STUB "WINSTUB.EXE"
4+
CODE MOVEABLE PRELOAD DISCARDABLE
5+
DATA MOVEABLE PRELOAD MULTIPLE
6+
HEAPSIZE 1024
7+
STACKSIZE 4096
8+
EXPORTS MainWndProc
9+
AboutDialogProc

Win16App.tgt

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
40
2+
targetIdent
3+
0
4+
MProject
5+
1
6+
MComponent
7+
0
8+
2
9+
WString
10+
4
11+
WEXE
12+
3
13+
WString
14+
5
15+
w_6en
16+
1
17+
0
18+
0
19+
4
20+
MCommand
21+
0
22+
5
23+
MCommand
24+
0
25+
6
26+
MItem
27+
12
28+
Win16App.exe
29+
7
30+
WString
31+
4
32+
WEXE
33+
8
34+
WVList
35+
0
36+
9
37+
WVList
38+
0
39+
-1
40+
1
41+
1
42+
0
43+
10
44+
WPickList
45+
10
46+
11
47+
MItem
48+
3
49+
*.c
50+
12
51+
WString
52+
4
53+
COBJ
54+
13
55+
WVList
56+
4
57+
14
58+
MRState
59+
15
60+
WString
61+
3
62+
WCC
63+
16
64+
WString
65+
24
66+
?????Space optimizations
67+
0
68+
1
69+
17
70+
MRState
71+
18
72+
WString
73+
3
74+
WCC
75+
19
76+
WString
77+
26
78+
?????Fastest possible code
79+
0
80+
0
81+
20
82+
MRState
83+
21
84+
WString
85+
3
86+
WCC
87+
22
88+
WString
89+
9
90+
??6??8086
91+
0
92+
0
93+
23
94+
MRState
95+
24
96+
WString
97+
3
98+
WCC
99+
25
100+
WString
101+
10
102+
??6??80286
103+
0
104+
1
105+
26
106+
WVList
107+
0
108+
-1
109+
1
110+
1
111+
0
112+
27
113+
MItem
114+
11
115+
callbacks.c
116+
28
117+
WString
118+
4
119+
COBJ
120+
29
121+
WVList
122+
0
123+
30
124+
WVList
125+
0
126+
11
127+
1
128+
1
129+
0
130+
31
131+
MItem
132+
9
133+
winmain.c
134+
32
135+
WString
136+
4
137+
COBJ
138+
33
139+
WVList
140+
0
141+
34
142+
WVList
143+
0
144+
11
145+
1
146+
1
147+
0
148+
35
149+
MItem
150+
5
151+
*.def
152+
36
153+
WString
154+
3
155+
NIL
156+
37
157+
WVList
158+
0
159+
38
160+
WVList
161+
0
162+
-1
163+
1
164+
1
165+
0
166+
39
167+
MItem
168+
12
169+
Win16App.def
170+
40
171+
WString
172+
3
173+
NIL
174+
41
175+
WVList
176+
0
177+
42
178+
WVList
179+
0
180+
35
181+
1
182+
1
183+
0
184+
43
185+
MItem
186+
3
187+
*.h
188+
44
189+
WString
190+
3
191+
NIL
192+
45
193+
WVList
194+
0
195+
46
196+
WVList
197+
0
198+
-1
199+
1
200+
1
201+
0
202+
47
203+
MItem
204+
11
205+
callbacks.h
206+
48
207+
WString
208+
3
209+
NIL
210+
49
211+
WVList
212+
0
213+
50
214+
WVList
215+
0
216+
43
217+
1
218+
1
219+
0
220+
51
221+
MItem
222+
10
223+
resource.h
224+
52
225+
WString
226+
3
227+
NIL
228+
53
229+
WVList
230+
0
231+
54
232+
WVList
233+
0
234+
43
235+
1
236+
1
237+
0
238+
55
239+
MItem
240+
4
241+
*.rc
242+
56
243+
WString
244+
5
245+
WRESC
246+
57
247+
WVList
248+
0
249+
58
250+
WVList
251+
0
252+
-1
253+
1
254+
1
255+
0
256+
59
257+
MItem
258+
11
259+
resource.rc
260+
60
261+
WString
262+
5
263+
WRESC
264+
61
265+
WVList
266+
0
267+
62
268+
WVList
269+
0
270+
55
271+
1
272+
1
273+
0

0 commit comments

Comments
 (0)