03-12-2019, 12:23 PM
(03-11-2019, 08:22 AM)Alexandre Machado Wrote: 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?
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;
}
//---------
Hi and thanks so much - I am away from the office this week but I will test it first thing next week.
Sincerely,
Denville.