VB6中基本类型变量在内存中的存储格式
整型常数0001391F0 04 00 00 00 01 00 00 00
Byte = 1
0012F5AC 04 00 00 00 01 00 00 00
001391C401 00 00 00
Integer = 2
0012F5AC 04 00 00 00 01 00 00 00
001391C802 00 00 00
Long = 3
0012F5AC 04 00 00 00 01 00 00 00
001391CC03 00 00 00
Single = 4#
0012F5AC 04 00 00 00 01 00 00 00
001391D000 00 80 40
Double = 5#
0012F5AC 04 00 00 00 01 00 00 00
001391D400 00 00 00 00 00 14 40
Currency = 6#
0012F5AC 04 00 00 00 01 00 00 00
001391DC60 EA 00 00 00 00 00 00
Date = 7
0012F5AC 04 00 00 00 01 00 00 00
001391E400 00 00 00 00 00 1C 40
String = "8"
0012F5AC 04 00 00 00 01 00 00 00
00401CAC38 00 00 00
Variant = 9
根据实际表示的类型而定
页:
[1]