How to create a console app using wxServer?

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
pkullmann
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Nov 30, 2006 6:15 pm

How to create a console app using wxServer?

Post by pkullmann » Tue Jul 24, 2007 12:12 pm

Hi,

I want to create a console app that uses wxServer. As far as I could see, wxServer requires an event loop to work.

My questions:

1) Does wxServer require an event loop?
2) Is there a way to set up an event loop without using wxApp? All my attempts failed, using wxEventLoop without having a wxApp object produced crashes due to uninitialized pointers.

I succeeded in creating an wxApp-based application that has no windows, but I am looking for the minimal solution.

Thanks,
Peter

upCASE
Site Admin
Site Admin
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE » Tue Jul 24, 2007 12:16 pm

Hi!
Have a look at the console example. It has some socket code.
OS: OpenSuSE, Ubuntu, Win XP Pro
wx: svn
Compiler: gcc 4.5.1, VC 2008, eVC 4

"If it was hard to write it should be hard to read..." - the unknown coder
"Try not! Do. Or do not. There is no try." - Yoda

pkullmann
Earned a small fee
Earned a small fee
Posts: 11
Joined: Thu Nov 30, 2006 6:15 pm

Post by pkullmann » Wed Jul 25, 2007 11:12 am

upCASE wrote:Hi!
Have a look at the console example. It has some socket code.
So, indirectly you are saying, I have to resort to plain sockets? I was hoping to be able to use the higher level communication features of wxServer/wxClient and possibly use DDE for communication.

Peter

Post Reply