If you know whether the DLL file is for a 32-bit system or a 64-bit system?

Source: Internet
Author: User
Tags net command reflector

When publishing a DLL, you can select the x86 mode, x64 mode, and any CPU mode. So how do you know the supported systems for published DLL files?

Method 1: Reflector

For. Net DLL files, use the reflector tool for identification:

ThePlatform targetIndicates the target system selected by the DLL during compilation.

 

Method 2: corflags.exe

Use the corflags tool that comes with vistual Studio. NET to open the vs.net command window:

Enter coreflags <assembly path>:

The PE and 32bit values show the number of system bits supported by the DLL:

Anycpu: PE = pe32 and 32bit = 0
X86: PE = pe32 and 32bit = 1
X64: PE = pe32 + and 32bit = 0

(See: http://blogs.msdn.com/ B /gauravseth/archive/2006/03/07/545104.aspx)

 Method 3: dumpin.exe

Run the dumpin command in vs.net tools to view the following information:

Dumpbin/headers <assembly path>

View the machine attributes to identify the number of supported system digits.

This method also allows you to view non-. Net compiled DLL information.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.