飘云阁

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 4368|回复: 0

[分享] VB6中基本类型变量在内存中的存储格式

[复制链接]
  • TA的每日心情
    擦汗
    2020-7-7 10:06
  • 签到天数: 2 天

    [LV.1]初来乍到

    发表于 2006-2-28 19:56:25 | 显示全部楼层 |阅读模式
    整型常数0
    001391F0  [02 00 00 00] 04 00 00 00 [00 00 00 00] 01 00 00 00

    Byte = 1
    0012F5AC  [11 40 00 00] 04 00 00 00 [C4 91 13 00] 01 00 00 00
    001391C4  01 00 00 00

    Integer = 2
    0012F5AC  [02 40 00 00] 04 00 00 00 [C8 91 13 00] 01 00 00 00
    001391C8  02 00 00 00

    Long = 3
    0012F5AC  [03 40 00 00] 04 00 00 00 [CC 91 13 00] 01 00 00 00
    001391CC  03 00 00 00

    Single = 4#
    0012F5AC  [04 40 00 00] 04 00 00 00 [D0 91 13 00] 01 00 00 00
    001391D0  00 00 80 40

    Double = 5#
    0012F5AC  [05 40 00 00] 04 00 00 00 [D4 91 13 00] 01 00 00 00
    001391D4  00 00 00 00 00 00 14 40

    Currency = 6#
    0012F5AC  [06 40 00 00] 04 00 00 00 [DC 91 13 00] 01 00 00 00
    001391DC  60 EA 00 00 00 00 00 00

    Date = 7
    0012F5AC  [07 40 00 00] 04 00 00 00 [E4 91 13 00] 01 00 00 00
    001391E4  00 00 00 00 00 00 1C 40

    String = "8"
    0012F5AC  [08 00 00 00] 04 00 00 00 [AC 1C 40 00] 01 00 00 00
    00401CAC  38 00 00 00

    Variant = 9
    根据实际表示的类型而定
    PYG19周年生日快乐!
    您需要登录后才可以回帖 登录 | 加入我们

    本版积分规则

    快速回复 返回顶部 返回列表