How does the data type in C # correspond to the type definition in API!

Source: Internet
Author: User
Description of unmanaged C-language managed classes in wtypes. h

Handle void * system. intptr 32-bit

Byte unsigned char system. byte 8-bit

Short short system. int16-bit

Word unsigned short system. uint16 16-bit

Int INT system. int32 32-bit

Uint unsigned INT system. uint32 32-bit

Long 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 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 float system. Single 32-bit

Double double system. Double 64-bit

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.