[How to convert CString to std::string]
In Visual Studio 6.0
One used to:
string mystring;
CString myCString("this is a CString");
mystring=(LPCTSTR)myCString;
However, it is not available anymore in Visual Studio 2005.
One should use "CT2CA" do like this:
string mystring;
CString myCString("this is a CString");
CT2CA myCT2CA(myCString);
mystring=myCString;
Saturday, March 27, 2010
Subscribe to:
Posts (Atom)
-
3 vertices and cross product If 3 vertices' coordinates are given, the size of the cross product of the two vectors is same to two ...
-
Reduced normatrix for photogrammetric bundle adjustment based on the collinearity equations Note: There are $m_1$ photos and $m_2$ obje...