[Qt-interest] Loading Qt Shared from DLL
Finley Lee
finleyl at alienskin.com
Wed Aug 26 17:32:16 CEST 2009
That's a good idea. I'll give it a try and report my results.
Thank you!
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Marco Borm
> Sent: Tuesday, August 25, 2009 6:46 PM
> To: qt-interest at trolltech.com
> Subject: Re: [Qt-interest] Loading Qt Shared from DLL
>
> Hi,
>
> maybe a wrapper plugin which uses SetDllDirectory() or
> SetEnvironmentVariable() to add the qt libraries directory to the
> search
> order is a way. After this the plugin loads the real plugin
> dynamically.
> Unfortunately this can result in unexpected side affects for other
> plugins or the application itself.
>
>
> Marco
>
>
> Finley Lee wrote:
> >
> > I'm creating a Photoshop plug-in on the Windows platform which I'd
> > like to use Qt with. The plug-in is a DLL which is installed in a
> > different folder from the application that loads it. I would like to
> > use the shared library version of Qt, but I can't figure out how to
> > get my plug-in to load the Qt DLLs when they are installed in the
> same
> > folder as my plug-in.
> >
> > I could put the Qt DLLs in Photoshop's application folder, in the
> > system directory, or the Windows directory, but this seems like an
> > invitation for them to be overwritten by an installer for another
> product.
> >
> > Is there a way to have the Qt DLLs get loaded from my plug-ins
> folder,
> > or will I need to use the static version of Qt?
> >
> > Thanks!
> >
> > -Finley
> >
> >
---------------------------------------------------------------------
> ---
> >
> > _______________________________________________
> > Qt-interest mailing list
> > Qt-interest at trolltech.com
> > http://lists.trolltech.com/mailman/listinfo/qt-interest
> >
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list