No, there is no built-in way to do this, since it is much less often required to redirect cin like this compared to cout . And itโs also not entirely clear how you expect this to work, i.e. You probably can't just map it to wxTextCtrl , as you do with cout . And in general, reading is a locking operation, as opposed to writing, so itโs completely unclear how you can structure your GUI application for this.
In short, I donโt think you can port your console program using cin to wxWidgets, as it is at all.
source share