Start a 64bit app from a 32bit app?

Under 64bit Windows 7, I want to start a 64bit executable(myapp64.exe) from a 32bit executable(myapp32.exe). Can I use CreateProcess, ShellExecute or ShellExecuteEx functions in myapp32.exe to do this? Will be there any problems or limitations?

I use Visual C++ 2008 to write both myapp32.exe and myapp64.exe.
LVL 8
chcwAsked:
Who is Participating?
 
jkrCommented:
Either of these APIs should be fine, but check the limitations mentioned in http://download.microsoft.com/download/A/F/7/AF7777E5-7DCD-4800-8A0A-B18336565F5B/wow64_bestprac.docx ("Best Practices for WOW64 ") - the mostly affect registry and file system redirection.
0
 
trinitrotolueneDirector - Software EngineeringCommented:
"A 64-bit executable file located under %windir%\System32 cannot be launched from a 32-bit process"
check this MSDN
0
 
trinitrotolueneDirector - Software EngineeringCommented:
and remember a 32 bit process cannot load a 64bit dll and vice versa
0
 
chcwAuthor Commented:
Great answers
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.