[Qt-interest] Loading Qt Shared from DLL
David Ching
dc at remove-this.dcsoft.com
Wed Aug 26 02:41:30 CEST 2009
"Finley Lee" <finleyl at alienskin.com> wrote in message
news:3A817DEAAED7D549B07303A6F4660AC4281B02 at server1.AlienSkin.local...
> I'm linking my Photoshop plug-in to Qt's import libraries, and expecting
> for Qt to get loaded by the OS runtime when my DLL is loaded.
> Unfortunately, the DLL search order wants to only load DLLs from the
> places I mentioned. I'm hoping there's some technique I don't know about
> which will allow the Qt DLLs to be loaded from the same location as my
> plug-in DLL.
>
http://msdn.microsoft.com/en-us/library/ms682586%28VS.85%29.aspx says the
"current directory" is also searched. You probably don't have control over
how Photoshop sets the current directory before it loads your plug-in, but
it seems if it changed the current directory to your plug-in's folder, then
the Qt DLL's stored there would be loaded properly.
-- David
More information about the Qt-interest-old
mailing list