WxDev C++ and Console outputting

  • Context: C/C++ 
  • Thread starter Thread starter cpscdave
  • Start date Start date
  • Tags Tags
    C++
Click For Summary

Discussion Overview

The discussion revolves around the challenges of outputting to a console while using wxWidgets in a C++ environment, particularly in the context of transitioning from a Python implementation. Participants explore methods for achieving console output and the rationale behind using a console in conjunction with wxWidgets.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant expresses frustration with transitioning from Python to wxC++ and seeks advice on how to output to a console using DEV C++.
  • Another participant suggests investigating the AllocConsole() function as a potential solution for console output.
  • Some participants question the necessity of combining wxWidgets with console output, suggesting that wxWidgets is primarily designed for GUI applications.
  • A participant mentions using the console for debugging purposes and shares a workaround involving writing output to a file instead of the console.

Areas of Agreement / Disagreement

Participants express differing views on the appropriateness of using a console with wxWidgets, with some advocating for its use for debugging while others question its necessity. The discussion remains unresolved regarding the best approach to console output in this context.

Contextual Notes

There are limitations regarding the specific project settings required to enable console output in wxWidgets applications, which are not fully explored in the discussion.

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!
 
Technology 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
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
  • · Replies 15 ·
Replies
15
Views
8K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K