Start a 64bit app from a 32bit app?
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Start a 64bit app from a 32bit app?

  1. #1
    Join Date
    Nov 2010
    Posts
    42

    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.
    Last edited by AlanCCC; January 4th, 2012 at 07:33 PM.

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,011

    Re: Start a 64bit app from a 32bit app?

    Quote Originally Posted by AlanCCC View Post
    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?
    Did you already try some of these APIs? What problems did you get?
    Victor Nijegorodov

  3. #3
    Join Date
    May 2005
    Posts
    4,951

    Re: Start a 64bit app from a 32bit app?

    Quote Originally Posted by AlanCCC View Post
    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.
    I did it in the past with ::CreateProcess() and didn't encounter any problem.

    Cheers
    If a post helped you dont forget to "Rate This Post"

    My Article: Capturing Windows Regardless of Their Z-Order

    Cheers

  4. #4
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,060

    Re: Start a 64bit app from a 32bit app?

    You can use any of the functions you've mentioned to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center