如题.

解决方案 »

  1.   

    没有 any cpu
    any cpu不过是同时生成x86和amd64而已。可以用windows sdk里面的dumpbin查看。
      

  2.   

    “Any CPU”是默认平台。如果组件以Any CPU作为平台进行编译,那么它将依据进程加载的情况以32位或64位方式运行。
    http://stackoverflow.com/questions/495244/how-can-i-test-a-windows-dll-to-determine-if-it-is-32bit-or-64bit
      

  3.   

    X86:
    FILE HEADER VALUES
                 14C machine (x86)
                   3 number of sections
            4D0F3992 time date stamp Mon Dec 20 19:10:10 2010
                   0 file pointer to symbol table
                   0 number of symbols
                  E0 size of optional header
                210E characteristics
                       Executable
                       Line numbers stripped
                       Symbols stripped
                       32 bit word machine
                       DLLX64:
    FILE HEADER VALUES
                8664 machine (x64)
                   2 number of sections
            4D0F4E8A time date stamp Mon Dec 20 20:39:38 2010
                   0 file pointer to symbol table
                   0 number of symbols
                  F0 size of optional header
                212E characteristics
                       Executable
                       Line numbers stripped
                       Symbols stripped
                       Application can handle large (>2GB) addresses
                       32 bit word machine
                       DLLANYCPU:
    FILE HEADER VALUES
                 14C machine (x86)
                   3 number of sections
            4D0F4F3F time date stamp Mon Dec 20 20:42:39 2010
                   0 file pointer to symbol table
                   0 number of symbols
                  E0 size of optional header
                210E characteristics
                       Executable
                       Line numbers stripped
                       Symbols stripped
                       32 bit word machine
                       DLL
    这里可以区分X86和X64, 但是ANYCPU显示的是X86, 不知如何区分, 文件总归是不一样的? 
      

  4.   

    dumpbin可以区分任何程序时X86还是X64, 而corflags可以区分这三种, 但只试用于.NET程序, 所以有个问题, 是不是VC的dll只支持X86和X64, 而不支持这种ANYCPU?