The error message says: "Modules with different CPU types were found" and Kernel32.dll has a red icon with "64" on the right side. Are you running a 64 Bit Windows OS and compiling for 32 Bit? I would guess that there is a 32/64 Bit mixup here.
EDIT:
Also, you mentioned that the issue only occurs when you use Qt, right? I don't see Qt libraries here. (oops, just noticed that the lib.dll is Qt)
Qt for manager
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: Qt for manager
Yes, I am running on 64 bits windows and I try to compile the lib on 32 bits to be compatible with our server installation.
But I don't know how to force it to use kernel32 in 32bits.
But I don't know how to force it to use kernel32 in 32bits.
- mpoint
- Posts:49
- Joined: Thu Oct 28, 2010 11:28 am
Re: Qt for manager
Caron Yann wrote:
As a last resort, you could try the SysInternals Process Monitor, filter for Operation=Load Image, and then try to load your library again. Maybe it would tell you which library cannot be loaded and with which error code.
I think Windows should figure that out by itself, with the File System Redirector. Could it be that the NetbeansCtrlExt.dll or the lib.dll is built for 64 bit?But I don't know how to force it to use kernel32 in 32bits.
As a last resort, you could try the SysInternals Process Monitor, filter for Operation=Load Image, and then try to load your library again. Maybe it would tell you which library cannot be loaded and with which error code.
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Qt for manager
Caron Yann wrote:
I have tries to add all the dependencies dll in the bin folder of the wincc project, but nothing fixed the problem.
It works in the only case I remove my Lib.
The name of my CtrlExt is NetbeansCtrlExt and the qt lib is lib.dll.
You should try it with the lib.dll in the same directory as the executable (in most cases this is the PVSS_PATH/bin, not the project bin directory).If I suppress the call to my Qt lib, it works perfectly.
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: Qt for manager
You should try it with the lib.dll in the same directory as the executable (in most cases this is the PVSS_PATH/bin, not the project bin directory).
Well....... okay..... now it's works perfectly....
Thanks a lots....
In my case it is not perfect because of maintenability. I have not any rollback possibility if I patch the PVSS/bin directory.
Is it an elegant maneer to indicate to PVSS to take the dll on the project/bin directory ?
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Qt for manager
Caron Yann wrote:
Include the project/bin directory in your PATH environment variable.Is it an elegant manner to indicate to PVSS to take the dll on the project/bin directory ?
- CyaNn
- Posts:97
- Joined: Tue Nov 23, 2010 9:48 am
Re: Qt for manager
Ok thanks you very mutch.
I feared this response ! It does not resolve the rollback capability.
Nevermind, I am happy it's work and now I can develop by test driven developpment. It is the most important at all.
Thank you so mutch
Best regards
Yann
I feared this response ! It does not resolve the rollback capability.
Nevermind, I am happy it's work and now I can develop by test driven developpment. It is the most important at all.
Thank you so mutch
Best regards
Yann