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 ///////////////////////////////////////////////////////////////////////////