网上都说用IsTextUnicode来判断,可是我用它怎么测试都不行,不管是否是UTF-8都返回0请问哪位曾经用过它么??还有,你调用的方式是什么样的?我的是:
if (IsTextUnicode(foo.GetBuffer(0), foo.GetSize(), NULL))
{
...
}
if (IsTextUnicode(foo.GetBuffer(0), foo.GetSize(), NULL))
{
...
}
解决方案 »
- 怎么在单文档工程里面调用Activex控件
- 關於華為,作軟件開發,請過路高人指點。。。。。。。。。。。。。。。。。。。。。
- 把鼠標滑向按鈕就浮出文字說明應該怎麽做!
- 通过界面按钮开启结束进程
- VC编译错误——急
- 如何双击一个tab关闭这个tab联系的document?另求CMDIFrameWnd和CMDIChildWnd两者之间的具体关系??
- 关于WSAASyncSelect异步
- 菜鸟问题,怎样读取*.txt文件的某一行,并赋给CString对象?
- 这个报错纠结死了,求大神
- 为什么GetModuleHandle会出错。
- 没有找到 MSVCR80D.DLL
- listCtrl高亮选取整条记录后,我进行其它操作高亮就消失了,怎么让它一直处于高亮状态?
当然不行了lpi
[in/out] On input, specifies the tests to be applied to the input buffer text. On output, receives the results of the specified tests: 1 if the contents of the buffer pass a test, zero for failure. Only flags that are set upon input to the function are significant upon output.
If lpi is NULL, the function uses all available tests to determine whether the data in the buffer is likely to be Unicode text.