vc中的long和dword这两个数据类型在delphi中用什么样的数据类型来说明呢?

解决方案 »

  1.   

    long=longint;
    dword=dword,longwordvc:
    BOOL   A Boolean value.
    BSTR   A 32-bit character pointer.
    BYTE   An 8-bit integer that is not signed.
    COLORREF   A 32-bit value used as a color value.
    DWORD   A 32-bit unsigned integer or the address of a segment and its associated offset.
    LONG   A 32-bit signed integer.
    LPARAM   A 32-bit value passed as a parameter to a window procedure or callback function.
    LPCSTR   A 32-bit pointer to a constant character string.
    LPSTR   A 32-bit pointer to a character string.
    LPCTSTR   A 32-bit pointer to a constant character string that is portable for Unicode and DBCS.
    LPTSTR   A 32-bit pointer to a character string that is portable for Unicode and DBCS.
    LPVOID   A 32-bit pointer to an unspecified type.
    LRESULT   A 32-bit value returned from a window procedure or callback function.
    UINT   A 16-bit unsigned integer on Windows versions 3.0 and 3.1; a 32-bit unsigned integer on Win32.
    WNDPROC   A 32-bit pointer to a window procedure.
    WORD   A 16-bit unsigned integer.
      

  2.   

    vc:
    Long,DWord
    Delphi:
    LongInt,DWord
      

  3.   

    long----->real(6字节)
    dword----->double(8字节)
      

  4.   

    这么多答案,怎么都不一样呢!在vc中long是多少字节呢!?能否用car..(忘记后面是怎么写的了)那dword呢,是不是跟asm中的dword一样呢1?