From 4d4b88ab29494f462b05727e064fcc00714b2632 Mon Sep 17 00:00:00 2001 From: MuldeR Date: Sat, 2 May 2015 21:51:40 +0200 Subject: [PATCH] Custom entry point. --- src/Main.cpp | 10 ++++++++++ z_build.bat | 6 +++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/Main.cpp b/src/Main.cpp index 666f733..f4881d6 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -123,3 +123,13 @@ int main(int argc, char* argv[]) { MUtils::Startup::startup(argc, argv, mixp_main, "MediaInfoXP", false); } + +extern "C" +{ + int mainCRTStartup(void); + + int mxp_entry_point(void) + { + return mainCRTStartup(); + } +} diff --git a/z_build.bat b/z_build.bat index 073083e..4234771 100644 --- a/z_build.bat +++ b/z_build.bat @@ -59,11 +59,11 @@ REM /////////////////////////////////////////////////////////////////////////// echo --------------------------------------------------------------------- echo BEGIN BUILD echo --------------------------------------------------------------------- -MSBuild.exe /property:Configuration=release /target:clean "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /target:clean "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError -MSBuild.exe /property:Configuration=release /target:rebuild "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /target:rebuild "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError -MSBuild.exe /property:Configuration=release /target:build "%~dp0\MediaInfoXP.sln" +MSBuild.exe /property:Configuration=release_static /target:build "%~dp0\MediaInfoXP.sln" if not "%ERRORLEVEL%"=="0" goto BuildError REM ///////////////////////////////////////////////////////////////////////////