File: vstartup.cpp

package info (click to toggle)
libv1.22 1.22-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 7,380 kB
  • ctags: 9,765
  • sloc: cpp: 58,097; ansic: 6,814; makefile: 1,597; java: 515; sh: 24
file content (25 lines) | stat: -rw-r--r-- 717 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

#include <windows.h>		// for Win 32 stuff

#ifdef __MINGW32__
  int vFORCE_TO_INCLUDE_MODULE;	// bug in mingw32?
#endif
#ifdef __CYGWIN32__
  int vFORCE_TO_INCLUDE_MODULE;	// bug in cygwin32?
#endif

//======================>>> WinMain <<<======================================

int  AppMain(int, char**);
int  CMain(HANDLE , HANDLE , LPSTR , int );
void vRegisterAppMain( int (*)(int, char**) );

int PASCAL WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
                   LPSTR lpszCmdLine, int nCmdShow)
{
   // pass the address of your AppMain to the V library.
   vRegisterAppMain(AppMain);

   // call CMain as in the static library.
   return CMain(hInstance, hPrevInstance, lpszCmdLine, nCmdShow);
}