C and c # correspond to variables in managed and unmanaged code

Source: Internet
Author: User

The following table lists the data types used in Win32 APIs (listed in Wtypes. h) and C style functions. Many non-writable libraries contain functions that pass these data types as parameters and return values.

The third column lists the corresponding. NET Framework built-in value types or classes used in managed code. In some cases, you can replace the types listed in this table with the same size.

Description of unmanaged C-language managed classes in Wtypes. h

 

Handle void * System. intPtr 32-bit byte unsigned char System. byte 8-bit short System. int16 16-bit word unsigned short System. UInt16 16-bit int System. int32 32-bit uint unsigned int System. UInt32 32-bit long System. int32 32-bit bool long System. int32 32-bit dword unsigned long System. UInt32 32-bit ulong unsigned long System. UInt32 32-bit char System. char is modified with ANSI. Lpstr char * System. String or System. StringBuilder is modified with ANSI. Lpcstr const char * System. String or System. StringBuilder is modified with ANSI. Lpwstr wchar_t * System. String or System. StringBuilder is modified with Unicode. Lpcwstr const wchar_t * System. String or System. StringBuilder are modified with Unicode. Float System. Single 32-bit double System. Double 64-bit

Related Article

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.