by maya » May 4, 2009 @ 4:20am
Hi,
Thanks for your reply.
I try your suggestion, it's work.
But I want to show string dynamically,the string is composed of any text in testFont.txt(continue last post), such as "九十","十入"...,because I don't know what string I will draw,I can't store my string in a unicode text file in advance,I try draw as follows,
WCHAR myText[]= L"九十".
buffer->DrawFont(100, 100, &font, myText, EFO_HCENTER | EFO_VCENTER | EFX_OPACITY, 255);
It have compile error as follows,
error C2440: 'initializing' : cannot convert from 'const wchar_t [4]' to 'unsigned short []'
2> There is no context in which this conversion is possible
how can I do?