I recently created a driver installation program, which uses a number of core functions such as UpdateDriverforPlugAndDevice(), using vs2008, in 32-bit operating system everything is working properly. But win32 program can run in x64, but under x64 it does not work. For example UpdateDriverForPlugandPlayDevices() raises an error, I used GetLastError (), and I see an error code. Later I was using a 64-bit system with vs2008 and compiled the x64 program, everything works fine, but the program can not run in win32. The problem is now solved, but I now maintain two versions of the installer 32 and 64; I do not know what a better way, I just run a seperate version of the executable.
xjh_sz
Posts
-
problem between OS of 32bit ans 64 bits -
关于32/64位操作系统下,应用程序兼容性问题First,thanks for your replies.I am sorry to you because I asked question in chinese. My question is as fllows. I recently created a driver installation program, which uses a number of core functions such as UpdateDriverforPlugAndDevice(), using vs2008, in 32-bit operating system everything is working properly. But win32 program can run in x64, but under x64 it does not work. For example UpdateDriverForPlugandPlayDevices() raises an error, I used GetLastError (), and I see an error code. Later I was using a 64-bit system with vs2008 and compiled the x64 program, everything works fine, but the program can not run in win32. The problem is now solved, but I now maintain two versions of the installer 32 and 64; I do not know what a better way, I just run a seperate version of the executable.
-
关于32/64位操作系统下,应用程序兼容性问题最近在写个驱动安装程序,里面用到一些内核函数比如UpdateDriverforPlugAndDevice(),用的vs2008,在32位操作系统下工作正常,win32的程序可以在x64下运行,但是在64位下就会出错,比如UpdateDriverforPlugAndDevice(),我用GetLastError(),看到出错。后来我在64位系统下装了vs2008,编译出x64程序,一切运行正常,但是这个程序无法在win32下运行。问题是解决了,但是我现在用维护两个版本32下一个,64位一个;不知道大家有什么好方法,只要运行一个版本。
-
UpdateDriverForPlugAndPlayDevices failed,errcode=0x103First,thank a lot for your reply.I have checked it as you said.But for winxp and win2000,the usage of function updateDriverForPlugAndPlayDevice() is same.
-
UpdateDriverForPlugAndPlayDevices failed,errcode=0x103I write a setup app for usb driver acording to \NTDDK\src\general\setup\install; In Windows xp ,it runs successfully;but in win2000 failed. who can tell me why? TKS a lot.