I have half a month of experience with wxWidgets past me and I came across this problem:
I want to execute some commands and display them in command window. But when I run them, they are just ran, not shown.
Example:
Code: Select all
#include<Windows.h>
// Some unneccesary wxWidgets code
system("cd C:\someFolder");
system("g++ test.cpp -o test.exe");
system("test.exe");
// Some unneccesary wxWidgets code
How can I solve this problem?
I have g++ compiler (9.2.0), Windows 10 and wxWidgets 3.1.