[MSW 2.8.6] DLL & event handling
Luca Cappa
luca.cappa at sequoia.it
Wed Feb 27 08:00:00 PST 2008
Hi,
are you linking your executable and your DLL *statically* to wxWidgets? In
that case it is expected to get that wrong behaviour, because for example
all the static variables are now replicated in both images. Instead you
should link dinamically to the DLL libraries of wxWidgets (if you are on
MSVC, when you compile the "DLL Release" configuration you will find those
DLLs in wxwidgets\lib\vc_dll along with the ".lib" files to link
implicitly to them).
Greetings,
Luca
On Wed, 27 Feb 2008 16:03:55 +0100, Exadrina <noM at il.it> wrote:
>
> I'm trying to build an application with logging capabilities.
> The applicatione is composed of a main window, displaying record
> retrieved from a DB, and a log window, popping when an error is
> sent to it. Both windows are built using wxWidgets 2.8.6 for MS
> Windows.
>
> The logger is a "Singleton" contained inside a DLL exposing
> a "C" interface. The logger is realized with a window (derived
> from wxFrame) having a StcEditCtrl control to display rows of
> text. This window has a menu bar with few items (file, options
> and help): any item has its event handler.
>
> Main Window has a wxListCtrl control, a menu bar and few other
> controls (a toolbar and a status bar).
>
> Without attaching the logger dll, main windows works perfectly
> and any event is managed in the right way. When I link the dll,
> main window's event handling stop working properly.
>
> I wasn't able to understand the reason of this behaviour, can
> anyone help me?
>
> I can supply the complete logger code and a test Main Window
> to track this problem.
>
> Tnx
>
More information about the wx-users
mailing list