[Qt-interest] Re : how to set dll path
BOUCARD Olivier
boucard_olivier at yahoo.fr
Tue Sep 20 15:11:33 CEST 2011
Jeremy is right. Setting the library path in the code can't help. It is too late. The libraries are loaded before the execution start.
Under Windows, if you do not want to move your dll you have to add your dll directory to the PATH environment variable.
Please take a look at http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.aspx#search_order_for_desktop_applications.
>________________________________
>De : Jeremy Lainé <jeremy.laine at bolloretelecom.eu>
>À : qt-interest at qt.nokia.com
>Envoyé le : Mardi 20 Septembre 2011 14h58
>Objet : Re: [Qt-interest] how to set dll path
>
>
>Le Sep 20, 2011 à 1:00 PM, Vincent Cai a écrit :
>
>> Dear all,
>>
>> I am newbie with QT. :)
>> Current, I am trying to create an application with external dll.
>> I can create dll successfully.
>> And if I copy the dll to the application directory, the application can load dll and run correctly.
>>
>
>Unless you are talking about a plugin, to my knowledge no Qt code can help you here : the application will simply not run as the links to the library cannot be resolved.
>
>You can try adding the directory which contains the DLL to the PATH environment variable though.
>
>--
>Jeremy LAINE
>Bolloré telecom | 11bis, rue Scribe | F-75009 Paris
>
>_______________________________________________
>Qt-interest mailing list
>Qt-interest at qt.nokia.com
>http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110920/1b34fd6f/attachment.html
More information about the Qt-interest-old
mailing list