hubbobubbo
7th January 2010, 16:19
Hi
I am using resolve to dynamically load my functions. I have a windows project and a windows mobile project.
I have two problems:
1. if I do
QLibrary library("my file");
library.load()
if(!library.isLoaded)
{
qFatal("Problem loading dll")
}
For Windows I always get isLoaded == false but it works anyway, I can call all functions. So it is just strange but not a showstopper. All calls to resolve return successful.
2. For Windows mobile I have the dll in the right folder and I have tried various paths. Like with Windows the isLoaded returns false but for Windows Mobile all calls to resolve fail and I cannot use the dll.
The dll has the declspec set to export and is wrapped in entern C. It works to load it via .NET and the same dll compiled for Windows works (with the isLoaded issue above). However for Windows Mobile I can not get it to resolve.
Thankful for any ideas on what to look for.
I am using resolve to dynamically load my functions. I have a windows project and a windows mobile project.
I have two problems:
1. if I do
QLibrary library("my file");
library.load()
if(!library.isLoaded)
{
qFatal("Problem loading dll")
}
For Windows I always get isLoaded == false but it works anyway, I can call all functions. So it is just strange but not a showstopper. All calls to resolve return successful.
2. For Windows mobile I have the dll in the right folder and I have tried various paths. Like with Windows the isLoaded returns false but for Windows Mobile all calls to resolve fail and I cannot use the dll.
The dll has the declspec set to export and is wrapped in entern C. It works to load it via .NET and the same dll compiled for Windows works (with the isLoaded issue above). However for Windows Mobile I can not get it to resolve.
Thankful for any ideas on what to look for.