[Interest] Is it possible to override dll in runtime in Qt?
manish sharma
83.manish at gmail.com
Wed Apr 9 08:41:44 CEST 2014
i think it should work using pluginloader something like below:
QObject* getPrmt(QString path)
{
QDir pluginsDir(path)
QPluginLoader loader(pluginsDir.absoluteFilePath(fileName));
return loader.instance();
}
and call getPrmt function with any of "A/Prmt.dll", "B/Prmt.dll"?
On Wed, Apr 9, 2014 at 10:34 AM, Vincent Cai <wcai at cypress.com> wrote:
> Dear All,
>
>
>
> I have an Qt application, which uses 2 dll, one is Prmt.dll and the other
> is Core.dll. Core.dll is dependent on Prmt.dll. Prmt.dll has multiple
> instances in different folders, for example: A/Prmt.dll, B/Prmt.dll... The
> Qt application provides an option to choose Prmt.dll, so it need to
> override Prmt.dll in runtime. Is it possible to override dll in runtime in
> Qt?
>
>
>
> Regards,
>
> Vincent.
> This message and any attachments may contain Cypress (or its
> subsidiaries) confidential information. If it has been received in error,
> please advise the sender and immediately delete this message.
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140409/4814d039/attachment.html>
More information about the Interest
mailing list