I’m trying to learn wxWidgets using this tutorial. It directs me to use a function called wxPuts() to put text in the console. My program compiles fine, but nothing shows up. I’ve searched for documentation to see exactly what wxPuts() is supposed to do so that I can get the settings right, but I’m having no luck.
Here is my code:
#include <cstdlib>
#include <wx\string.h>
int main()
{
wxPuts(wxT("A wxWidgets console application."));
return EXIT_SUCCESS;
}
What is wxPuts() supposed to do? I’m using Code::Blocks, but I also have Eclipse CDT and Microsoft Visual C++. How do I set up my IDE, so that wxPuts() gives the correct output?
I feel kinda dumb. It turns out I wasn’t waiting long enough for the text to pop up. For some reason it takes a very long time. My bad.