char *p = CString.GetBuffer(CString.GetLenth());
解决方案 »
- 实习生请教下,要满足公司导入EXCEL到SQL2000的要求,我做了个程序导入简单EXCEL能导入但导入20多个EXCEL列名时出现#idispatch3092
- 对话框数组,构造后DestroyWindow()后无法再重新创建?跪求大神帮忙
- windows media player windows media encoder 区别
- dll中隐式声明 类中函数的隐式声明 如何调用类中的函数dll中
- 窗口的销毁!
- 对话框关闭问题
- 关于msdn与vc绑定
- 一个让我发晕的错误,哪位高手来点拨一下?急!
- _com_util::ConvertBSTRToString如何使用
- CMFCEditBrowseCtrl控件怎样得到文件路径呢
- 属性页的问题
- 那位知道图像24色转换2色
char *ch;
str="aaaaa';
ch=str.getbuffer(str.getlenth());
CString str2="121212";
lstrcpy(str1,str2);
CString 可以作为const char* 传入
char *s2=(LPTSTR)(LPCTSTR)s1;
char *call;
call = m_Call.GetBuffer(m_Call.GetLength());编译出错
char *call;
call = m_Call.GetBuffer(m_Call.GetLength());编译就不会出错了。不然让GetLength()返回0,GetBuffer(0)编译出错。
http://www.csdn.net/develop/article/11/11245.shtm