Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to create Window Form EXE

Status
Not open for further replies.

vladibo

Programmer
Sep 14, 2003
161
CA
How to create Window Form EXE? Well I know that I make a class that extends System::Windows::Forms::Form and it has an entry like this:

#ifdef _UNICODE
int wmain(void)
#else
int main(void)
#endif
{
Application::Run(new MyForm());
return 0;
}

But I don't want to see cansole window. All I want is just runable exe. How to do this?
 
OK I found it:

int __stdcall WinMain()
{
As2Documenter *A2D = new As2Documenter();

A2D->Height = 220;
A2D->Width = 500;
Application::Run(A2D);
return 0;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top