Search found 62 matches

by tigerbeard
Fri Nov 23, 2012 10:42 pm
Forum: General Development
Topic: Control a GUI from a Service
Replies: 5
Views: 2480

Re: Control a GUI from a Service

doublemax wrote:Try wxGetApp().ExitMainLoop(). But you probably shouldn't call it directly from another thread, try sending an event instead.
Indeed, sending of an event worked fine, e.g. wxQueueEvent().

Thanks,
Tiger
by tigerbeard
Fri Nov 23, 2012 6:35 pm
Forum: General Development
Topic: Control a GUI from a Service
Replies: 5
Views: 2480

Re: Control a GUI from a Service

I tested a bit with that, and really could get it work. In fact, the wxExecute() worked from a ServiceThread without Warnings or ASSERTS. Cool! So that solved my Issue, thanks a lot. What remains is to find a good way to close the App from yet another thread (ServiceControlHandler). So far I tried w...
by tigerbeard
Fri Nov 23, 2012 5:11 pm
Forum: General Development
Topic: Control a GUI from a Service
Replies: 5
Views: 2480

Re: Control a GUI from a Service

Thanks doublemax,

very good hint, I woudn't have expected that. I'll try that.

tiger
by tigerbeard
Fri Nov 23, 2012 4:42 pm
Forum: General Development
Topic: New to WxWidgets... :H e l p:
Replies: 3
Views: 1364

Re: New to WxWidgets... :H e l p:

I might add, that I found the WxWidget book a very helpful read.
I bought is as paper version and I am very happy with it. I also use it as pdf, which you can find in google under "wxBook" easily. I can be searched and has quite a lot of very useful code snippets to collect.
by tigerbeard
Fri Nov 23, 2012 4:00 pm
Forum: General Development
Topic: Control a GUI from a Service
Replies: 5
Views: 2480

Control a GUI from a Service

Hello, I am stuck with a design issue and would lke to ask for ideas. I have a system service that is taking input via the network. By design of MSW the main thread just calls a separate ServiceMain() in a separate thread via a blocking call to a "ServiceDispatcher". Before that call I can use wxIni...
by tigerbeard
Wed Aug 11, 2010 9:45 pm
Forum: C++ Development
Topic: Problem with wx.chm
Replies: 3
Views: 374

Re: Problem with wx.chm

This is not devastating, but intriguing nevertheless. I recently downloaded wxWidgets 2.8.11 and most everything is fine. However, one thing that doesn't work is the search function in Windows Help. All other .chm files I have - including wx.chm from 2.6.2 - don't have this problem. I wondered whet...
by tigerbeard
Tue Jul 27, 2010 2:23 pm
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

So when you trace into the wxLog functions, the one that is actually used in your case is the one taking wxChar * as argument (so it was wrong what i said before about changing to char *). Even so it was a good advise for the MyLog class function, because it allows me to call it without the L prefi...
by tigerbeard
Mon Jul 26, 2010 10:48 pm
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

This confirms that something in your library build is not as it should be. But i don't really now what's responsible, i'd guess some setting in setup.h. Do you have the chance to test with a totally clean 2.9.1? Well I did make a new clean compilation of the lib, though I did not touch any options ...
by tigerbeard
Mon Jul 26, 2010 6:13 pm
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

Theoretically, all you have to do is replacing the log functions that take "const wxChar *" with the ones that take "const char *". good point. I did that and converted the code above to "const char*". Now the wxT() which I put in before had to be removed so it would compile. Thats covers problem 1...
by tigerbeard
Mon Jul 26, 2010 1:30 pm
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

As already mentioned wxT() should not make any difference. And in VisualC calling wxLog without c_str() seems to work, as you found out yourself. If your own log implementation does not work, then post its code and the errors you get. Sorry, I think I was not clear enough above. Here is my Code and...
by tigerbeard
Mon Jul 26, 2010 2:32 am
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

You must have skipped this . I do not navigate well in the sources, so indeed I did not see those operators in use. What exactly are you trying to accomplish? well its two things, actually. First is linked to understand what code I must change when moving to 2.9.1. Any additions like c_str() and the...
by tigerbeard
Mon Jul 26, 2010 1:34 am
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

But I must admit it has always been unclear to me what %s expects. Does it take a char*, a wchar_t*, a wxString? It feels like something the docs should mention; I haven't looked but IIRC they don't I've seen both char* and wchar_t versions at some point. As there is a template class of Char_Type b...
by tigerbeard
Mon Jul 26, 2010 12:18 am
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

Thanks for the quick feedback. There are only two things to know: a) wxT() in wx 2.8.x is just a simple macro that expands to nothing in ANSI mode and L"" in unicode mode. But this is not needed any more in 2.9.x, so it works with and without I read the same statement in the documentation, but I do ...
by tigerbeard
Mon Jul 26, 2010 12:17 am
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

deleted - double post
by tigerbeard
Sun Jul 25, 2010 10:49 pm
Forum: C++ Development
Topic: wxLog implementation and unicode
Replies: 20
Views: 2594

Thanks for the link.

Actually, thats part of what I meant with documentation. I read it a couple of times, but maybe I missed a hint to an explanation of the effects above.