char * p="i love vc";
CString temp=(CString)p;
int count=strlen(temp);
是不是这样.
CString temp=(CString)p;
int count=strlen(temp);
是不是这样.
解决方案 »
- 请问如何实现禁止游戏运行时修改屏幕分辨率?
- ONTimer函数,将接收数据编号的问题
- 庆祝儿子满月,散分!
- 我现在要根据一个协议写一个api,请有这方面经验的达人们进来给点建议
- 【求助】如何统计通过Sygate代理上网的局域网的各计算机流量?(高分)
- Create button on a window, cann't more than 300*33 ????????????
- how to convert _variant_t to CString??
- 请教1下,如何在1个回调函数中使用在我的类中定义的数据
- 大人们请进,在线等!!!关于creatfile,readfile,writefile函数
- 各位大侠,各路高手,快快过来帮帮小弟分析下面这段有关文件读取的代码,急急急!!!!我已经被搞得焦头烂耳
- 良田千顷,日不过三餐,,,。。。。。。
- 如何才能查看陈年老贴?
char* s;
s="abcde";
int count=strlen(s);
CString temp的长度用temp.GetLengh()不就得到了吗。
或者你用 char * 的字串生成一个 CString, 再 GetLength()