Results 1 to 2 of 2

Thread: Types

  1. #1

    Thread Starter
    Hyperactive Member Amon Ra's Avatar
    Join Date
    Feb 2001
    Location
    In some cave on Uranus...
    Posts
    500

    Talking Types

    Hrmm, is there a list of all the basic and "advanced" types and a description.(advanced types such as LPSTR...) Thanks
    Amon Ra
    The Power of Learning.

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    WOW That's a lot of types

    Quick explanation of why loads of them are LPxxx - LP means Long Pointer and stems from the 16-bit days of Windows (which most of us are still in ).

    LPCSTR == const char* (guarantees it won't be changed)
    LPCWSTR == const wchar_t*
    LPCTSTR == const TCHAR* (TCHAR switches between char and wchar_t depending on compile options for Unicode)

    Take out the C and you get the non-const version.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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