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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert TCHAR and LPVOID to CString

Status
Not open for further replies.

mianaziz

Programmer
Jun 19, 2002
18
0
0
PK
i have to convert LPVOID and TCHAR type to CString to display in edit box. did u know any helping function or ....
 
I dont fully understand what you are asking. The LPVOID is of what type? As for the TCHAR, it is used to make applications UNICODE compliant. The following should work fine for your TCHAR:

TCHAR str[] = "HELLO WORLD";
CString cstr = str;
CString anotherCstr = CString(str);


All TCHAR is, is a char when Unicode is not defined and wchar when it is defined.

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top