CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2009
    Posts
    5

    long long int and ULARGE_INTEGER

    What is the difference between unsigned long long int and ULARGE_INTEGER? And is ULARGE_INTEGER the same as __int64?

  2. #2
    Join Date
    Apr 2009
    Posts
    598

    Re: long long int and ULARGE_INTEGER

    unsigned long long int, ULARGE_INTEGER, and unsigned __int64 are integers stored in 64 bits.
    FYI, there are also UINT64, ULONGLONG and LONG64, which are also integers stored in 64 bits.

    ULARGE_INTEGER is a structure:
    typedef union _ULARGE_INTEGER {
    struct {
    DWORD LowPart;
    DWORD HighPart;
    } ;
    struct {
    DWORD LowPart;
    DWORD HighPart;
    } u;
    ULONGLONG QuadPart;
    }ULARGE_INTEGER, *PULARGE_INTEGER;
    (source: http://msdn.microsoft.com/en-us/libr...42(VS.85).aspx)
    long long is at the source of several other types:
    #define __int64 long long
    typedef __int64 LONG64, *PLONG64;
    typedef __int64 INT64, *PINT64;
    typedef unsigned __int64 UINT64, *PUINT64;
    (source: basestd.h)
    Myself, when I program for Windows, I like to use UINT64 and INT64.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured