From 32314dd3d9aa01f929ee6d158d6f6ac2e0e22ed5 Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 28 Mar 2019 20:17:03 +0800 Subject: ... --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a787fbca..c35213f7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -16,12 +16,13 @@ using cru::ui::controls::Button; using cru::ui::controls::FlexLayout; using cru::ui::controls::TextBlock; -int main() { +int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, + LPWSTR lpCmdLine, int nCmdShow) { #ifdef CRU_DEBUG _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF); #endif - Application application(::GetModuleHandleW(nullptr)); + Application application(hInstance); const auto window = Window::CreateOverlapped(); -- cgit v1.2.3