有关UNICODE 字符判断的疑问!
BOOL fIsUnicode=IsTextUnicode("我们都是木头人",6,NULL);
// BOOL fIsUnicode=IsTextUnicode("ABCDdededd",6,NULL);
以上两个函数在win2k下,vc6中,都返回0.与MSDN中的说明:
DWORD IsTextUnicode(
CONST LPVOID lpBuffer, // pointer to an input buffer to be examined
int cb, // the size of the input buffer
LPINT lpi // flags that condition examination and receive results
);
Return Values
The function returns nonzero if the data in the buffer passes the specified tests.
The function returns zero if the data in the buffer does not pass the specified tests.
In either case, the int variable pointed to by lpi contains the results of the specific tests the function applied to make its determination.
请问:是我用错IsTextUnicode()了,还是其它问题.如何判断一个字符串是否是UNICODE.?