How to send output? Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

How to send output?

Post by FlyingIsFun1217 » Fri Feb 17, 2012 10:49 pm

Hey,

I'm attempting to have output from my program to to the terminal. First I tried with cout, but that seems to only send the output once the program closes. I've been messing around with wxMessageOutput, but my program segfaults when the functon containing Printf(wxT("")) is called. Is there an easy way of just sending output to the terminal (standard output)?

FlyingIsFun1217

DavidHart
Site Admin
Site Admin
Posts: 3889
Joined: Thu Jan 12, 2006 6:23 pm
Location: IoW, UK

Re: How to send output?

Post by DavidHart » Fri Feb 17, 2012 11:00 pm

Hi,

I normally use one of the wxLog functions e.g. wxLogDebug, but cout << foo << endl; should work too.

Regards,

David

FlyingIsFun1217
Super wx Problem Solver
Super wx Problem Solver
Posts: 497
Joined: Mon Nov 06, 2006 9:58 pm

Re: How to send output?

Post by FlyingIsFun1217 » Sat Feb 18, 2012 12:14 am

Thanks, I was missing the endl before, which was ultimately the problem.

FlyingIsFun1217

Post Reply