wxLogWindow make it much easier to debugging and logging.
in the constructor add the following code:
#if defined(__WXDEBUG__ )
//logging and debugging
wxLogWindow *w= new wxLogWindow(this, wxT("Logger"));
Then, in anywhere, add the following:
Since I'm going to extend my knowledge of programming, I selected wxWidgets as the next target. It has some advantages when comparing with other frameworks:
So here's how to setup wxWidgets on Windows Vista. I assume you already setup MinGW and Code::Blocks.
Download and install MinGW: 1. download MinGW-5.1.4.exe, create c:\MinGW, and run it. It'll download and install the current stable version of GCC, G++ etc. 2. set the environment, add c:\MinGW\bin;C:\MinGW\libexec\gcc\mingw32\3.4.5 to PATH 2.1 download gdb and extract to c:\MinGW 2.2 start a console, make sure you can run gcc -v and gdb -v 3. download code::blocks 8.02, install and start it 3.1 in code::blocks, settings->Global compiler settings, selected compiler=GNU GCC Compiler, then add the following into Search directories