SyntaxHighlighter

2009/07/28

How to Display DOS Window with wxWidgets.

Cross-Platform GUI Programming with wxWidgetsWe don't usually see DOS Window(/DOS prompt/DOS console) when using wxWidgets (wxMSW) on Windows.

To show the window, we have to change the subsystem configuration of VC project file from /SUBSYSTEM:WINDOWS to /SUBSYSTEM:CONSOLE.
Then insert the following code into your application .cpp file:
#if (defined __WXMSW__ ) && (defined __WXDEBUG__)
IMPLEMENT_WXWIN_MAIN_CONSOLE
#endif

0 件のコメント:

コメントを投稿