Custom entry point.

This commit is contained in:
LoRd_MuldeR 2015-05-02 21:51:40 +02:00
parent 77d67f7d2e
commit 4d4b88ab29
2 changed files with 13 additions and 3 deletions

View File

@ -123,3 +123,13 @@ int main(int argc, char* argv[])
{ {
MUtils::Startup::startup(argc, argv, mixp_main, "MediaInfoXP", false); MUtils::Startup::startup(argc, argv, mixp_main, "MediaInfoXP", false);
} }
extern "C"
{
int mainCRTStartup(void);
int mxp_entry_point(void)
{
return mainCRTStartup();
}
}

View File

@ -59,11 +59,11 @@ REM ///////////////////////////////////////////////////////////////////////////
echo --------------------------------------------------------------------- echo ---------------------------------------------------------------------
echo BEGIN BUILD echo BEGIN BUILD
echo --------------------------------------------------------------------- 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 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 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 if not "%ERRORLEVEL%"=="0" goto BuildError
REM /////////////////////////////////////////////////////////////////////////// REM ///////////////////////////////////////////////////////////////////////////