Comparison of Delphi, C/C ++, and Visual Basic Data Types

Source: Internet
Author: User
Comparison of Delphi, C/C ++, and Visual Basic Data Types
========================================================== ==========================================================
Variable type: Delphi C/C ++ Visual Basic
8-bit signed integer char --
8-digit -- symbol integer Byte BYTE, unsigned short Byte
16-bit signed integer SmallInt short Short
16-bit -- signed integer Word unsigned short --
32-bit signed Integer, Longint int, long Integer Long
32-bit -- symbol integer Cardinal, LongWord unsigned long --
64-bit signed integer Int64 _ int64 --
4-byte floating point number Single float Single
6-byte floating point number Real48 ----
8-byte floating point number Double double Double
10-byte floating point number Extnded long double --
64-bit currency value Currency -- currency
8-byte Date/time TDateTime -- Date
16-byte variantVariant, VARIANT Variant (Note), Variant (default)
OleVariant, TVarData OleVariant (note)
1-byte character Char char --
2-byte character WideChar WCHAR --
String of fixed length bytes string ----
Dynamic String AnsiString (Note) String
String PChar * ended with Null *--
Width string PWideChar LPCWSTR ended with Null --
Dynamic 2-byte string WideString (Note )--
1-byte Boolean, ByteBool (any number of 1 bytes )--
2-byte Boolean value WordBool (any 2-byte number) Boolean
4-byte Boolean value BOOL, LongBool BOOL --
========================================================== ==========================================================

 

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.