]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/main.cpp
Store hInstance in Application class on win32
[libs/core.git] / source / core / main.cpp
index 4b187c3ed244b35491658ee66ee14aeb08419cc0..5cf18c3a81222412d8bf61ae8ed724e7b2ff4062 100644 (file)
@@ -1,5 +1,6 @@
-/*
-This file is part of libmspframework
+/* $Id$
+
+This file is part of libmspcore
 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
@@ -10,11 +11,11 @@ Distributed under the LGPL
 #include "application.h"
 
 #ifdef WIN32
-int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
+int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE /*hPrevInstance*/, LPSTR /*lpCmdLine*/, int /*nCmdShow*/)
 { 
        int argc        = 0;
-       LPWSTR *argv    = CommandLineToArgvW(GetCommandLineW(), &argc);
-       return Msp::Application::run(argc, (char **)argv);
+       LPWSTR *argv=CommandLineToArgvW(GetCommandLineW(), &argc);
+       return Msp::Application::run(argc, (char **)argv, hInstance);
 }
 #endif