[wx-dev] What to do about gdiplus.lib?
Vadim Zeitlin
vadim at wxwindows.org
Wed Oct 4 03:20:52 PDT 2006
On Tue, 03 Oct 2006 20:16:13 -0700 Robin Dunn <robin at alldunn.com> wrote:
RD> I've added the bakefile and configure.in things needed to build the new
RD> graphics context modules, and to define wxUSE_GRAPHICS_CONTEXT as
RD> needed. But I'm not sure what to do about gdiplus.lib. I can see where
RD> to add it in common.bkl if I wanted it to always be linked, but I figure
RD> it should probably be optional with an option in config.vc, but I'm not
RD> sure how to do that. Can somebody help me out?
I think gdiplus.dll needs to be loaded dynamically as otherwise the wx
applications wouldn't start up on the older systems not having it, even if
they don't use wxGraphicsContext. A better solution could be to use delay
load linker option but I'm almost sure that not all compilers we use
support it. So I don't see any other choice but to load the DLL dynamically
and wrap all of its functions, a bit like we do with uxtheme ones already.
Regards,
VZ
More information about the wx-dev
mailing list