Click here to Skip to main content
15,891,184 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 PinPopular
Richard MacCutchan21-Jul-10 0:13
mveRichard MacCutchan21-Jul-10 0:13 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
Sauro Viti21-Jul-10 1:00
professionalSauro Viti21-Jul-10 1:00 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
Luc Pattyn21-Jul-10 14:41
sitebuilderLuc Pattyn21-Jul-10 14:41 
QuestionRe: About 32/64 bit operating system, application compatibility issues Pin
David Crow21-Jul-10 3:09
David Crow21-Jul-10 3:09 
JokeRe: About 32/64 bit operating system, application compatibility issues Pin
Yusuf21-Jul-10 7:08
Yusuf21-Jul-10 7:08 
AnswerRe: About 32/64 bit operating system, application compatibility issues Pin
David Crow21-Jul-10 7:41
David Crow21-Jul-10 7:41 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 [modified] Pin
sunlin721-Jul-10 3:13
sunlin721-Jul-10 3:13 
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
Randor 21-Jul-10 14:03
professional Randor 21-Jul-10 14:03 
xjh_sz wrote:

I recently created a driver installation program, which uses a number of core functions such as UpdateDriverforPlugAndDevices(), 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.


Hi xjh_sz,

I believe that you are doing the correct thing by creating two separate installers for 32 and 64 bit. UpdateDriverForPlugAndPlayDevices does not support WOW64. You might be able to get your 32 bit installer to work by calling Wow64EnableWow64FsRedirection[^] but I honestly don't know for sure.

Some additional documentation:

Driver Installation for 32-bit and 64-bit Platforms[^]

Best Wishes,
-David Delaune
AnswerRe: 关于32/64位操作系统下,应用程序兼容性问题 Pin
xjh_sz21-Jul-10 14:59
xjh_sz21-Jul-10 14:59 
QuestionDeleting all columns in CListCtrl Pin
kishorekumar146 20-Jul-10 23:21
kishorekumar146 20-Jul-10 23:21 
AnswerRe: Deleting all columns in CListCtrl Pin
Code-o-mat20-Jul-10 23:26
Code-o-mat20-Jul-10 23:26 
AnswerRe: Deleting all columns in CListCtrl Pin
«_Superman_»21-Jul-10 0:14
professional«_Superman_»21-Jul-10 0:14 
GeneralRe: Deleting all columns in CListCtrl Pin
Niklas L21-Jul-10 1:01
Niklas L21-Jul-10 1:01 
QuestionBug when filling a CListBox with a list of non archived files? Pin
Erik20-Jul-10 22:07
Erik20-Jul-10 22:07 
AnswerRe: Bug when filling a CListBox with a list of non archived files? Pin
Cool_Dev20-Jul-10 22:49
Cool_Dev20-Jul-10 22:49 
AnswerRe: Bug when filling a CListBox with a list of non archived files? [modified] Pin
Code-o-mat20-Jul-10 23:22
Code-o-mat20-Jul-10 23:22 
AnswerRe: Bug when filling a CListBox with a list of non archived files? [modified] Pin
Richard MacCutchan21-Jul-10 1:20
mveRichard MacCutchan21-Jul-10 1:20 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Erik21-Jul-10 1:27
Erik21-Jul-10 1:27 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Richard MacCutchan21-Jul-10 2:04
mveRichard MacCutchan21-Jul-10 2:04 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Erik21-Jul-10 2:34
Erik21-Jul-10 2:34 
AnswerRe: Bug when filling a CListBox with a list of non archived files? Pin
David Crow21-Jul-10 3:13
David Crow21-Jul-10 3:13 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Richard MacCutchan21-Jul-10 2:50
mveRichard MacCutchan21-Jul-10 2:50 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Erik21-Jul-10 2:54
Erik21-Jul-10 2:54 
GeneralRe: Bug when filling a CListBox with a list of non archived files? Pin
Richard MacCutchan21-Jul-10 5:01
mveRichard MacCutchan21-Jul-10 5:01 
Questionhow to enble menu item in a system menu? Pin
vasu_sri20-Jul-10 21:29
vasu_sri20-Jul-10 21:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.