knowledge-database (beta)

Current group: comp.soft-sys.wxwindows

Using wxWidgets from multiple shared libraries, all loaded by a

Using wxWidgets from multiple shared libraries, all loaded by a  
Michael Ruder
 Re: Using wxWidgets from multiple shared libraries, all loaded by a single program  
Cheetah
 Re: Using wxWidgets from multiple shared libraries, all loaded by a single program  
lothar.behrens at lollisoft.de
From:Michael Ruder
Subject:Using wxWidgets from multiple shared libraries, all loaded by a
Date:Thu, 20 Jan 2005 14:18:02 +0000 (UTC)
Hi,

we are using a generic library loader to load several hardware dependent
library implementations with common interface. Some of the libraries
should now include GUIs and a "master GUI" will also be loaded as a
library.

I was now wondering, if I'm going to experience problems, if several
libraries which are all dynamically loaded by one program start to
initialize wxWidgets for themselves. However, I cannot init it in the main
program for various reasons (f.e. the main program doesn't know if the
libraries will have a GUI and in case they have not, wx should not be
initialized).

Has anyone done something like this? I couldn't find good examples for one
shared library yet, the initialisation in the library was not that simple
anyway. And I did not find examples for multiple libraries.

Thanks for any help/examples!

Regards,
--
.. -Michael


/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
< Hans Michael Ruder, mailto: ruder@tau-tec.de, http://www.tau-tec.de/ >
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
PGP (DH/DSS) fingerprint: E36AA1E3E9083C104E71 8374375B2F4272C7E44E

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
From:Cheetah
Subject:Re: Using wxWidgets from multiple shared libraries, all loaded by a single program
Date:Thu, 20 Jan 2005 14:36:57 +0000 (UTC)
On Thu, 20 Jan 2005 15:17:13 +0100 (Westeurop=E4ische Normalzeit),
Michael Ruder wrote:
> we are using a generic library loader to load several hardware dependent
> library implementations with common interface. Some of the libraries
> should now include GUIs and a "master GUI" will also be loaded as a
> library.

My suggestion in this case would be to structure your library loading
so that any setup that will use the wx gui first loads a master gui
dll which does all the common initialization and perhaps starts the
event loop, depending on how your app is structured. Then you can
load various component gui dlls that provide your sub pieces and they
either assume that wx is ready, or better make a couple calls to
ensure that the master dll is loaded, and that it has initialized wx.

--=20
-- Cheetah

---------------------------------------------------------------------
To unsubscribe, e-mail: wx-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wx-users-help@lists.wxwidgets.org
From:lothar.behrens at lollisoft.de
Subject:Re: Using wxWidgets from multiple shared libraries, all loaded by a single program
Date:20 Jan 2005 20:20:57 -0800
Hi,

I have a similar problem. I do load my application at runtime. It does
not really need the
GUI.

I can extend my application by delegating it to subsequential modules.
My master GUI creates a small functionality by creating menu entries.
The events
are routed to that instance in the master GUI.

So, it works at least with one wxWidgets based executable and multible
non GUI
modules.

I have created an interface between the wxWidgets app and the
subsequential
module and these doesn't linked against wx.

It works - at least for me.

These are the key features:

Dynamic event interconnection from menu/buttons to it's handlers.
Regardless, if with wx or without it.
Can create different database formulars out of non wx modules and
more...

Regards,

Lothar
   

Copyright © 2006 knowledge-database   -   All rights reserved