Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CString object as a pointer to a buffer 1

Status
Not open for further replies.

rishabhs

Programmer
Nov 25, 2002
5
US
how do i use a CString Object instead a pointer to a char buffer or vice versa
 
You can convert a CString to a LPCTSTR. Or you can use the GetBuffer() method to directly access the CString's buffer.
You can also construct a CString from a const char* (LPCTSTR) or convert a char* to a CString explicitly.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top