I used the .NET forms application wizard. From the form youclick a button and it calls a C++ function through its dll. This function is supposed to pop-up a command prompt window. Something about using this forms application wizard prevents thewindow from opening. The program otherwise runs correctly. Inoticed that the wizard gave me a main with the notation:
int APIENTRY main(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
I decide to open an empty project and move all my source code. Ithen changed the main so that is simply read:
int main()
When I do this the command prompt window does open, but if youminimize the form you can not maximize it again. My question iswhat can I do so that I can get the command prompt window toopen from the function call, and have a workingminimize/maximize on the form?
--------------------------------
From: Laura Zeafla
-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)
<Id>vWy+7eDmBUm7GpanukU8WA==</Id>