LPCTSTR 转std::string

LPCTSTR In OCX parameter ,
change LPCTSTR paramers into std::string
we can use below code

 m_fileDat=CT2A(fileFaceDat); 
 or use this code 
		//#ifdef UNICODE
		//	std::wstring w;
		//	w = fileFaceXML;
		//	m_stdXML = std::string(w.begin(), w.end()); // magic here
		//#else
		//	s = fileFaceXML;
		//#endif

i tested ok !

发布了2 篇原创文章 · 获赞 0 · 访问量 46

猜你喜欢

转载自blog.csdn.net/xyzyjg/article/details/104411556