Click here to Skip to main content
15,881,424 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: check for Substring Pin
ankitbtrivedi27-May-09 0:35
ankitbtrivedi27-May-09 0:35 
GeneralRe: check for Substring Pin
Rajesh R Subramanian27-May-09 3:34
professionalRajesh R Subramanian27-May-09 3:34 
GeneralRe: check for Substring Pin
ThatsAlok28-May-09 6:02
ThatsAlok28-May-09 6:02 
GeneralRe: check for Substring Pin
Rajesh R Subramanian28-May-09 19:15
professionalRajesh R Subramanian28-May-09 19:15 
Questionwrapping VOIP traffic Pin
B060611526-May-09 0:40
B060611526-May-09 0:40 
AnswerRe: wrapping VOIP traffic Pin
B060611526-May-09 19:00
B060611526-May-09 19:00 
Questionconvert TCHAR to CString Pin
p_196025-May-09 23:28
p_196025-May-09 23:28 
AnswerRe: convert TCHAR to CString Pin
Cedric Moonen25-May-09 23:37
Cedric Moonen25-May-09 23:37 
No need to convert anything, you can simply assign your buffer in your CString object:
CString csPath = buffer;


If you need to concatenate your buffer at the end of the CString content, you can also do it like this:
CString csPath = "Something";
csPath += buffer;


BTW, what is SIZEOFTCHAR ? What is its value ? If it is the size of one character, then your string will only be able to contain 1 single character, so I guess this is not really what you want.

Cédric Moonen
Software developer

Charting control [v2.0]
OpenGL game tutorial in C++

GeneralRe: convert TCHAR to CString Pin
p_196025-May-09 23:43
p_196025-May-09 23:43 
GeneralRe: convert TCHAR to CString Pin
Cedric Moonen25-May-09 23:50
Cedric Moonen25-May-09 23:50 
GeneralRe: convert TCHAR to CString Pin
CPallini25-May-09 23:50
mveCPallini25-May-09 23:50 
QuestionRe: convert TCHAR to CString Pin
Rajesh R Subramanian25-May-09 23:55
professionalRajesh R Subramanian25-May-09 23:55 
AnswerRe: convert TCHAR to CString Pin
CPallini26-May-09 0:03
mveCPallini26-May-09 0:03 
GeneralRe: convert TCHAR to CString Pin
ThatsAlok26-May-09 22:19
ThatsAlok26-May-09 22:19 
GeneralRe: convert TCHAR to CString Pin
CPallini26-May-09 22:31
mveCPallini26-May-09 22:31 
GeneralRe: convert TCHAR to CString Pin
ThatsAlok28-May-09 6:01
ThatsAlok28-May-09 6:01 
GeneralRe: convert TCHAR to CString Pin
CPallini28-May-09 9:20
mveCPallini28-May-09 9:20 
GeneralRe: convert TCHAR to CString Pin
aravind.sn19-Jun-09 1:23
aravind.sn19-Jun-09 1:23 
QuestionPlease help me regarding :LoadCursorFromFile with .ani file Pin
ptr_Electron25-May-09 23:21
ptr_Electron25-May-09 23:21 
AnswerRe: Please help me regarding :LoadCursorFromFile with .ani file Pin
Stuart Dootson25-May-09 23:42
professionalStuart Dootson25-May-09 23:42 
GeneralRe: Please help me regarding :LoadCursorFromFile with .ani file Pin
ptr_Electron26-May-09 0:00
ptr_Electron26-May-09 0:00 
GeneralRe: Please help me regarding :LoadCursorFromFile with .ani file Pin
ptr_Electron26-May-09 0:17
ptr_Electron26-May-09 0:17 
GeneralRe: Some onePlease help me regarding :LoadCursorFromFile with .ani file Pin
ptr_Electron26-May-09 0:51
ptr_Electron26-May-09 0:51 
GeneralRe: Please help me regarding :LoadCursorFromFile with .ani file Pin
Stuart Dootson26-May-09 0:51
professionalStuart Dootson26-May-09 0:51 
GeneralRe: Please help me regarding :LoadCursorFromFile with .ani file Pin
ptr_Electron26-May-09 1:09
ptr_Electron26-May-09 1:09 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.