帮助需要AfxExtractSubString() [英] Help need on AfxExtractSubString()
本文介绍了帮助需要AfxExtractSubString()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,
BOOL AfxExtractSubString(CString&rString,LPCTSTR lpszFullString,int iSubString,TCHAR chSep)
chSep是否也可以是"(一个空格字符)?我试过它是'',''并且可以正常工作,但是''''不能以某种方式工作...
感谢您的帮助,
Brian Jeong
Hello,
BOOL AfxExtractSubString(CString& rString, LPCTSTR lpszFullString, int iSubString, TCHAR chSep)
Is it possible that chSep can be '' '' (a space char) too? I have tried it be '','' and works fine, but '' '' does not work somehow...
Appreciate your help in advcance,
Brian Jeong
推荐答案
嗨
您可以发布代码吗?
在我的环境中,下面的代码运行正常.
Hi
Can you post your code?
On my environment the code below just works fine.
LPCTSTR lpszInputString = "a b c d e f g";
CString strResult;
int i = 0;
while (AfxExtractSubString(strResult,lpszInputString, i++, _T(' ')))
{
// Do something with strResult...
}
这篇关于帮助需要AfxExtractSubString()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文