| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. Problems with wxwindows being displayed #2346 Posted by: 2003-07-02 02:24:11 | When starting a wxwindows application using CreateProcess (C++) the program fails to display in the windows system. Otherwise the program seems to be working fine.
When we start the application from a dos console window the application works fine.
We are building this Borland C++ 5.0 compiler and running this program on windows NT. The application is not built as a console.
snippet from code: BWSUIApp is a wxwindows application.
char * temp; .... temp.strcpy( "BWSUIApp_b ... ");
if( !CreateProcess( NULL, //applicationName, included in command line temp, // Command line. NULL, // Process handle not inheritable. NULL, // Thread handle not inheritable. FALSE, // Set handle inheritance to FALSE. 0, // Create console creation flags NULL, // Use parents environment NULL, // Use parent's starting directory. &si, // Pointer to STARTUPINFO structure. &pi ) // Pointer to PROCESS_INFORMATION structure. ) { ACE_DEBUG(( LM_DEBUG, ACE_TEXT( "Failed to create processn"))); return -1; } //end if
Thanks,
Jonathan Luellen | 2. Re: Problems with wxwindows being displayed #2350 | May try the process/thread objects/functions provided by wxWindows itself to see whether can replace CreateProcess win32api. | Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|