WxDev C++ and Console outputting

  • Context: C/C++ 
  • Thread starter Thread starter cpscdave
  • Start date Start date
  • Tags Tags
    C++
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
3 replies · 2K views
cpscdave
Messages
402
Reaction score
120
So I ran into a problem with my Python implementation and have decided to rewrite my program in wxC++ instead of wxPython.

Starting to make some progress (I keep forgetting to put ;'s at the end of lines DAMN YOU PYTHON!)

ANyone know how I can output to a console? I was using LiClipse for the python dev and any prints went to the console in the IDE.

I'm now using DEV C++ but if I do printf's or count's I don't see the outputs.
Anyone have any ideas??

Thanks!
 
Physics news on Phys.org
Why are you combining wxWidgets and a console? The way to show the console is somewhere in the project file, but usually the point of the wxWIdget is to see only your main window. Can you simply log your output somewhere?
 
newjerseyrunner said:
Why are you combining wxWidgets and a console?

I used the console to output debugging information. Its nice to be able to output information in an easy format when building stuff.

@256bits Thanks I'll look into that. What I've done as a quick workaround is built a little object that writes to a file, which I just monitor using tail