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 »

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
Moderator
Moderator
Posts: 3176
Joined: Mon Aug 30, 2004 6:55 am
Location: Germany, Cologne

Post by upCASE »

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 »

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