X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fmain.cpp;fp=source%2Fcore%2Fmain.cpp;h=4b187c3ed244b35491658ee66ee14aeb08419cc0;hp=0000000000000000000000000000000000000000;hb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;hpb=0bcb8d4d6f33cbdad7b921cac787740bfe8e212e diff --git a/source/core/main.cpp b/source/core/main.cpp new file mode 100644 index 0000000..4b187c3 --- /dev/null +++ b/source/core/main.cpp @@ -0,0 +1,22 @@ +/* +This file is part of libmspframework +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ +#ifdef WIN32 +#include +#endif + +#include "application.h" + +#ifdef WIN32 +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); +} +#endif + +int main(int argc, char **argv) +{ return Msp::Application::run(argc, argv); }