mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-02 20:31:22 +00:00
45 lines
695 B
C++
45 lines
695 B
C++
|
///////////////////////////////////
|
||
|
// main.cpp
|
||
|
|
||
|
// Add the Win32++\include directory to project's additional include directories
|
||
|
#include "Wincore.h"
|
||
|
|
||
|
|
||
|
class CView : public CWnd
|
||
|
{
|
||
|
public:
|
||
|
CView() {}
|
||
|
virtual ~CView() {}
|
||
|
};
|
||
|
|
||
|
|
||
|
class CSimpleApp : public CWinApp
|
||
|
{
|
||
|
public:
|
||
|
CSimpleApp() {}
|
||
|
virtual ~CSimpleApp() {}
|
||
|
virtual BOOL InitInstance();
|
||
|
|
||
|
private:
|
||
|
CView m_View;
|
||
|
};
|
||
|
|
||
|
BOOL CSimpleApp::InitInstance()
|
||
|
{
|
||
|
// Create the Window
|
||
|
m_View.Create();
|
||
|
|
||
|
return TRUE;
|
||
|
}
|
||
|
|
||
|
// Note: This application doesn't end when the window is closed
|
||
|
|
||
|
int APIENTRY WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
||
|
{
|
||
|
// Start Win32++
|
||
|
CSimpleApp MyApp;
|
||
|
|
||
|
// Run the application
|
||
|
return MyApp.Run();
|
||
|
}
|