comparison winmain.c @ 49:bf42d08d72d7

Added font text extent querying code, and made it so winmain.c can be used without Dynamic Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 09 Nov 2001 13:49:44 +0000
parents 67a643a734d9
children 32b5fba0b00a
comparison
equal deleted inserted replaced
48:16eac0f8b45f 49:bf42d08d72d7
6 #include <stdlib.h> 6 #include <stdlib.h>
7 #include <string.h> 7 #include <string.h>
8 #include <stdio.h> 8 #include <stdio.h>
9 #include <process.h> 9 #include <process.h>
10 10
11 #ifndef NODW
11 void Win32_Set_Instance(HINSTANCE hInstance); 12 void Win32_Set_Instance(HINSTANCE hInstance);
13 #endif
12 14
13 char **_convertargs(int *count, char *start, HINSTANCE DWInstance) 15 char **_convertargs(int *count, char *start, HINSTANCE DWInstance)
14 { 16 {
15 char *tmp, *argstart, **argv; 17 char *tmp, *argstart, **argv;
16 int loc = 0, inquotes = 0; 18 int loc = 0, inquotes = 0;
98 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) 100 int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
99 { 101 {
100 char **argv; 102 char **argv;
101 int argc; 103 int argc;
102 104
105 #ifndef NODW
103 Win32_Set_Instance(hInstance); 106 Win32_Set_Instance(hInstance);
107 #endif
104 108
105 argv = _convertargs(&argc, lpCmdLine, hInstance); 109 argv = _convertargs(&argc, lpCmdLine, hInstance);
106 110
107 return main(argc, argv); 111 return main(argc, argv);
108 } 112 }