Re: Load Plugins on Windows
My first guess would be line 15 of your 1st code snippet : you have to escape backslashes in the address string
Re: Load Plugins on Windows
You don't even need back slashes, forward slashes will work fine. Keep back slashes for the purpose they were made for - escaping characters.
Even Windows itself supports forward slashes in paths (and has done for years), but lots of applications require backslashes because authors assume they are the standard.
Re: Load Plugins on Windows
I changed the slashes to backslashes but it still doesn't work... :(
I also tried with the libLDMS.a and without the .a but nothing.
Re: Load Plugins on Windows
Quote:
Originally Posted by
ruben.rodrigues
I changed the slashes to backslashes but it still doesn't work... :(
As stated, theres no need to change the slashes to back slashes.
Quote:
Originally Posted by
ruben.rodrigues
I also tried with the libLDMS.a and without the .a but nothing.
QPluginLoader doesn't support .a files, only DLL files.
What is the error that is reported?
Re: Load Plugins on Windows
Quote:
Originally Posted by
squidge
As stated, theres no need to change the slashes to back slashes.
QPluginLoader doesn't support .a files, only DLL files.
What is the error that is reported?
There is no error message. The if(plugin) return false when it shouldnt. I also tried to put the dll and the exe in the same folder but it also didn't work
Re: Load Plugins on Windows
Where is the Q_EXPORT_PLUGIN2 macro?
Re: Load Plugins on Windows
Quote:
Originally Posted by
Lykurg
Where is the Q_EXPORT_PLUGIN2 macro?
I am going to kill my self right after I post this...can't fkin believe that I forgot the macro specially when I have it on my code under ubuntu...
Thanks a lot Lykurg!
By the way...I had also to change the backslashes(\) to fowardslashes(/)
Re: Load Plugins on Windows
Quote:
Originally Posted by
ruben.rodrigues
There is no error message. The if(plugin) return false when it shouldnt. I also tried to put the dll and the exe in the same folder but it also didn't work
I know you fixed this now, but when it returns false, typically QPluginLoader::errorString () is set to some message to explain why. Are you saying this was an empty string?