vc2005中的CString 的有关问题
vc2005中的CString 的问题
我在VC2005中声明一个CString类型的局部变量,如 CString str=L "this " 或CString str=_T( "this "),或者CString str(L "this "),运行时,就有问题了,str是乱码.还提示说str是一个错误的指针!
请问这是什么问题,该怎么解决?
------解决方案--------------------
CString str= "this ";
这样不行吗?
或者CString str=_L( "this ");
吧
------解决方案--------------------
你那段代码拿出来看看
------解决方案--------------------
你说局部变量,是不是在变量作用域外部来看?
我在VC2005中声明一个CString类型的局部变量,如 CString str=L "this " 或CString str=_T( "this "),或者CString str(L "this "),运行时,就有问题了,str是乱码.还提示说str是一个错误的指针!
请问这是什么问题,该怎么解决?
------解决方案--------------------
CString str= "this ";
这样不行吗?
或者CString str=_L( "this ");
吧
------解决方案--------------------
你那段代码拿出来看看
------解决方案--------------------
你说局部变量,是不是在变量作用域外部来看?