U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ MT-multithreading and servers » (win32) gui in a dll
(win32) gui in a dll [message #44346] Wed, 25 February 2015 03:17 Go to next message
pber is currently offline  pber
Messages: 8
Registered: February 2011
Location: Italy
Promising Member
hi all,
my C main dlopen Tk.dll and just use it, without blocking.

I would do the same with an Ultimate++ gui,
in other words NOT blocking when I call App::Run.

Tried to run the gui from a second thread...
and discovered that this way is explicitly
proibited by Ultimate (I guess by Windows).

Any suggestion about what I miss?
thanks
Re: (win32) gui in a dll [message #44347 is a reply to message #44346] Thu, 26 February 2015 08:30 Go to previous message
mirek is currently offline  mirek
Messages: 14290
Registered: November 2005
Ultimate Member
Yes, that is right. Technically, it would probably be possible with Win32 to run the GUI thread as non-main, but it might be confusing and a lot of code would need to be modified in U++...

Anyway, this model (I mean GUI running in the main thread) is pretty common arrangement, e.g. Qt has this too.

If you are running "the real stuff" in main thread now and GUI in another, would it be hard to swap that?

Previous Topic: HttpRequest for https page
Next Topic: How to add statistics feature on SkyLark aplication?
Goto Forum:
  


Current Time: Sat Apr 25 18:43:05 GMT+2 2026

Total time taken to generate the page: 0.00404 seconds