[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)
-
Linear Intersection for a Stereo Pair There are two images. Object point vs. image point, in the first image: $$ \begin{pmatrix} X \\...
-
Reduced normatrix for photogrammetric bundle adjustment based on the collinearity equations Note: There are $m_1$ photos and $m_2$ obje...
-
-. A-priori reference variable has no unit (unitless). It is typically 1.0 or can be a different value for scaling. -. Weight is determ...