Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Problems with wxwindows being displayed

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. 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
Message2. Re: Problems with wxwindows being displayed
#2350
Posted by: guidance 2003-07-02 11:41:25
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 First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2023-1-27  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0