locked
64bit vs10e

    Question

  • I have previously posted a question regarding 64bit compilation. This question is similar but different since I am able to compile, but I am not certain that the exe file is a 64bit application.
    I followed this steps:
    http://social.msdn.microsoft.com/Forums/en-GB/vssetup/thread/4386e9db-61bf-418e-940e-b561c2cbbebf

    Then I went to http://msdn.microsoft.com/en-us/library/9yb4317s(v=vs.100).aspx and followed the steps there. I have converted a small program to my new platform, which I called Win64; following the lead of VS10 Express engineers.

    Now, my concern is that in the second webpage, under the subtitle "To copy Win32 project settings into a 64-bit project configuration" it says:

    "When the New Solution Platform dialog box is open while you set up your project to target a 64-bit platform, click the Copy settings from drop-down arrow, and then select Win32. The following project settings are automatically updated on the project level:

    - /MACHINE (Specify Target Platform) is set to /MACHINE:IA64 or /MACHINE:X64.

    - Register Output is turned OFF. For more information, see Linker Property Pages.

    - Target Environment is set to /env x64 or /env ia64. For more information, see MIDL Property Pages: General.

    - Validate Parameters is cleared and reset to the default value. For more information, see MIDL Property Pages: Advanced.

    - If Debug Information Format was set to /ZI in the Win32 project configuration, then it is set to /Zi in the 64-bit project configuration. For more information, see /Z7, /Zi, /ZI (Debug Information Format)."

    However, non of these changes have occurred, which leads me to believe that my "Win64" is nothing else than another Win32.

    How can I confirm that my "Win64" program is truly a 64-bit and not just another 32-bit application?

    Thursday, December 27, 2012 5:28 AM

Answers

  • How can I confirm that my "Win64" program is truly a 64-bit and not just another 32-bit application?

    One way is to try and run it under a Win32 version of Windows.
    If it's 32-bit it will run, if it's 64-bit it won't.

    Another way is to use the DUMPBIN.EXE utility.

    From a VC++ Tools console command line, run
    dumpbin /all Your.exe > dump.out

    If it's 64-bit you'll see this in dump.out:
    (version may vary - this is from VC++ 2008)

    Microsoft (R) COFF/PE Dumper Version 9.00.21022.08
    Copyright (C) Microsoft Corporation.  All rights reserved.

    Dump of file Your.exe

    PE signature found

    File Type: EXECUTABLE IMAGE

    FILE HEADER VALUES
                8664 machine (x64)


    If it's 32-bit you'll see this in dump.out:            
                            
    Microsoft (R) COFF/PE Dumper Version 9.00.21022.08
    Copyright (C) Microsoft Corporation.  All rights reserved.

    Dump of file Your.exe

    PE signature found

    File Type: EXECUTABLE IMAGE

    FILE HEADER VALUES
                 14C machine (x86)

    - Wayne

    Thursday, December 27, 2012 7:45 AM

All replies

  • How can I confirm that my "Win64" program is truly a 64-bit and not just another 32-bit application?

    One way is to try and run it under a Win32 version of Windows.
    If it's 32-bit it will run, if it's 64-bit it won't.

    Another way is to use the DUMPBIN.EXE utility.

    From a VC++ Tools console command line, run
    dumpbin /all Your.exe > dump.out

    If it's 64-bit you'll see this in dump.out:
    (version may vary - this is from VC++ 2008)

    Microsoft (R) COFF/PE Dumper Version 9.00.21022.08
    Copyright (C) Microsoft Corporation.  All rights reserved.

    Dump of file Your.exe

    PE signature found

    File Type: EXECUTABLE IMAGE

    FILE HEADER VALUES
                8664 machine (x64)


    If it's 32-bit you'll see this in dump.out:            
                            
    Microsoft (R) COFF/PE Dumper Version 9.00.21022.08
    Copyright (C) Microsoft Corporation.  All rights reserved.

    Dump of file Your.exe

    PE signature found

    File Type: EXECUTABLE IMAGE

    FILE HEADER VALUES
                 14C machine (x86)

    - Wayne

    Thursday, December 27, 2012 7:45 AM
  • Hi,

    I have marked WayneAKing's reply as answer.
    If you disagree, please unmark it, and post your doubt.

    Regards,


    Elegentin Xie
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, January 4, 2013 5:42 AM
    Moderator