C++ Builder 10.2 - main project cpp file corruption?

1
Hi,

I have some custom code in the beginning of

int WINAPI _tWinMain(HINSTANCE, HINSTANCE, LPTSTR, int)

function in the main project cpp file. When adding a new form to a project all my custom code in that function is deleted and a new code is generated with additional Application->CreateForm.. Is this a bug?
Responses (1)
  • Accepted Answer

    Monday, July 17 2017, 11:26 PM - #Permalink
    1

    Hi,

    - if You want to make work with clean c/c++ in the main(), You must create console mode project.

    Thanks.

     

    The reply is currently minimized Show
Your Reply

Please login to post a reply