Every program has to have a main.
#include "SageWindow.h"
#include "Game.h"
|
|
#define | USE_DEBUG_CONSOLE |
| | Define to use a console window for debug messages.
|
| |
|
| int WINAPI | wWinMain (_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _In_ LPWSTR lpCmdLine, _In_ int nCmdShow) |
| | The main entry point for this application.
|
| |
|
|
static Sage::CWindow | g_cWindow |
| | The window class.
|
| |
|
static CGame | g_cGame |
| | The game class.
|
| |
◆ wWinMain()
| int WINAPI wWinMain |
( |
_In_ HINSTANCE | hInstance, |
|
|
_In_opt_ HINSTANCE | hPrevInstance, |
|
|
_In_ LPWSTR | lpCmdLine, |
|
|
_In_ int | nCmdShow ) |
The main entry point for this application.
- Parameters
-
| hInstance | Handle to the current instance of this application. |
| hPrevInstance | Unused. |
| lpCmdLine | Unused. |
| nCmdShow | Nonzero if window is to be shown. |
- Returns
- 0 If this application terminates correctly, otherwise an error code.