File: vstartup.cpp

package info (click to toggle)
v1 1.20-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 6,240 kB
  • ctags: 9,439
  • sloc: cpp: 48,033; ansic: 8,939; makefile: 1,369; sh: 30
file content (21 lines) | stat: -rw-r--r-- 679 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
#include <v/vwin32.h>		// for Win 32 stuff
#include <v/vapp.h>		// my header file
#include <v/vwindow.h>		// Win header
#include <v/vfont.h>		// for font stuff

extern int (*pAppMain)(int, char**);

 int vFORCE_TO_INCLUDE_MODULE;	// bug in mingw32?

//======================>>> WinMain <<<======================================
#ifdef _WIN32
  int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance,
		      LPSTR lpszCmdLine, int nCmdShow)
#else
  int PASCAL WinMain(HANDLE hInstance, HANDLE hPrevInstance,
		      LPSTR lpszCmdLine, int nCmdShow)
#endif
  {
    pAppMain = &AppMain;
   return CMain(hInstance, hPrevInstance, lpszCmdLine, nCmdShow);
  }