From: Brendan J Simon <brendan.simon@ct...> - 2000-09-25 08:48:21
Gerd Mueller wrote:
> > > > Thus, we should use 'WXMAKINGDLL' or 'WXUSINGDLL' under Windows.
> > > Nope. The logic must be reversed from that of wxWindows.
> > >
> > > Building wxWindows: WXDLLEXPORT is __declspec(dllexport)
> > > Building wxStudio WXDLLEXPORT is __declspec(dllimport)
This is a bit confusing, have a wx dll *export* macro defined as
Wouldn't something like WXDLLIMPORT be more sensible ??
If the macro gets redefined depending on the type of compile, then a
more generic name would be appropriate.
Note: I am not a DLL expert so I don't really grasp the full concepts of
the __declspec other than it is used to either import symbols from an
existing DLL or to export symbols from a DLL to be created.