Page 1 of 1

How to create a console app using wxServer?

Posted: Tue Jul 24, 2007 12:12 pm
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

Posted: Tue Jul 24, 2007 12:16 pm
by upCASE
Hi!
Have a look at the console example. It has some socket code.

Posted: Wed Jul 25, 2007 11:12 am
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