Sunday, July 12, 2009

TextOutW( lpdis->hDC , 28 , 6 , L"♣" , 1 ) ;?

this code dont write ♣ .


please explain how i can write this unicode character - With C++ %26amp; TextOutW API.


Thanks

TextOutW( lpdis-%26gt;hDC , 28 , 6 , L"♣" , 1 ) ;?
You have to check:


1st- that the font currently selected on the DC has an image for that character.


2nd- that the source file is correct (remember you are providing an 8 bit char, which is turned into UNICODE just by adding a '0' -ansi code page- mark); maybe you're saving the source as UTF8 and thus the L macro is changing your text back to its components and adding a zero to each. You'd do better by using UNICODE hexadecimal notation (I believe it was smthng like \U0032).

cheap flowers

No comments:

Post a Comment