|
-
Jan 2nd, 2001, 04:24 PM
#1
Thread Starter
Lively Member
What is the difference between a LPTSTR and a LPWSTR???
How can I convert between the two?
If you drop a blond and a UNIX box out a window, which one lands first?
-
Jan 2nd, 2001, 04:59 PM
#2
I think LPWSTR is a unicode data type...
-
Jan 2nd, 2001, 05:27 PM
#3
Frenzied Member
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.
-
Jan 2nd, 2001, 05:34 PM
#4
Monday Morning Lunatic
Is it just me or does anyone else find this confusing?
Code:
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
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|