Click to See Complete Forum and Search --> : data types
aaudette
Jan 2nd, 2001, 03:24 PM
What is the difference between a LPTSTR and a LPWSTR???
How can I convert between the two?
I think LPWSTR is a unicode data type...
Vlatko
Jan 2nd, 2001, 04:27 PM
LPTSTR -- An LPWSTR ifUNICODE is defined, an LPSTR otherwise.
LPWSTR -- Pointer to a null-terminated string of 16-bit Unicode characters. For more information, seeCharacter Sets Used By Fonts.
parksie
Jan 2nd, 2001, 04:34 PM
Is it just me or does anyone else find this confusing?
LPTSTR szString = TEXT("String");
// as opposed to this
TCHAR *szString = TEXT("String");
I find the second method much more readable, because it shows the indirection levels :confused:
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.