03-11-2019, 08:22 AM
(This post was last modified: 03-11-2019, 08:23 AM by Alexandre Machado.)
This project template works correctly. The only difference is the inclusion of tchar.h. I don't know why it started failing in new projects in some C++ IDEs, not in others.
There is no AV regarding ServerController missing or something.
Can you please test it and let me know?
There is no AV regarding ServerController missing or something.
Can you please test it and let me know?
Code:
//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
USEFORM("Unit1.cpp", IWForm1); /* TIWAppForm: File Type */
USEFORM("ServerController.cpp", IWServerController); /* TIWServerControllerBase: File Type */
USEFORM("UserSessionUnit.cpp", IWUserSession); /* TIWUserSessionBase: File Type */
//---------------------------------------------------------------------------
#include <IWRtlFix.hpp>
#include <IWStart.hpp>
//---------------------------------------------------------------------------
#if _WIN64
int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)
#elif __WIN32__
WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
#endif
{
try
{
TIWStart::Execute(true);
}
catch (Exception &exception)
{
}
return 0;
}
//---------