Search This Blog

Saturday, February 28, 2009

How to convert CString into LPTSTR ?

CString csStr = "Hello";
LPTSTR lpStr = csStr.GetBuffer( 0 );
csStr.ReleaseBuffer();

No comments: