Click here to Skip to main content
15,898,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Want to make my exe as service Pin
David Crow18-Sep-06 5:31
David Crow18-Sep-06 5:31 
AnswerRe: Want to make my exe as service Pin
S Douglas17-Sep-06 22:50
professionalS Douglas17-Sep-06 22:50 
QuestionPrint dialog notification Pin
Nilesh K.17-Sep-06 20:39
Nilesh K.17-Sep-06 20:39 
QuestionHow to convert a string to char Pin
vc++_fragrance17-Sep-06 19:59
vc++_fragrance17-Sep-06 19:59 
AnswerRe: How to convert a string to char Pin
Rinu_Raj17-Sep-06 20:04
Rinu_Raj17-Sep-06 20:04 
AnswerRe: How to convert a string to char Pin
Kiran Pinjala17-Sep-06 20:06
Kiran Pinjala17-Sep-06 20:06 
AnswerRe: How to convert a string to char Pin
ashokbngr17-Sep-06 20:11
ashokbngr17-Sep-06 20:11 
AnswerRe: How to convert a string to char Pin
Christian Graus17-Sep-06 20:11
protectorChristian Graus17-Sep-06 20:11 
Two people have correctly told you how to get a char *, although neither told you that you need to call ReleaseBuffer() on the string when you're done with it. But if you want to access a single char from the string, you can use index notation to access one character at a time.

CString s("sucka");
char u = s[1];

This is assuming a non Unicode build, of course.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog

GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 20:37
Stephen Hewitt17-Sep-06 20:37 
GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 21:03
cpp_prgmer17-Sep-06 21:03 
GeneralRe: How to convert a string to char Pin
Stephen Hewitt17-Sep-06 22:24
Stephen Hewitt17-Sep-06 22:24 
GeneralRe: How to convert a string to char Pin
cpp_prgmer17-Sep-06 23:04
cpp_prgmer17-Sep-06 23:04 
GeneralRe: How to convert a string to char Pin
Zac Howland18-Sep-06 3:26
Zac Howland18-Sep-06 3:26 
QuestionDoc-View to be called from a dialog based MFC program? Pin
Rajeswari, T.17-Sep-06 19:58
Rajeswari, T.17-Sep-06 19:58 
Questionthreads to save in compound document. Pin
cpp_prgmer17-Sep-06 19:55
cpp_prgmer17-Sep-06 19:55 
AnswerRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 20:55
Stephen Hewitt17-Sep-06 20:55 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 20:59
cpp_prgmer17-Sep-06 20:59 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt17-Sep-06 21:09
Stephen Hewitt17-Sep-06 21:09 
GeneralRe: threads to save in compound document. Pin
cpp_prgmer17-Sep-06 21:13
cpp_prgmer17-Sep-06 21:13 
GeneralRe: threads to save in compound document. Pin
Stephen Hewitt18-Sep-06 14:08
Stephen Hewitt18-Sep-06 14:08 
QuestionHow can i set caption for SDI? Pin
kiranin17-Sep-06 19:48
kiranin17-Sep-06 19:48 
AnswerRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 19:53
Hamid_RT17-Sep-06 19:53 
GeneralRe: How can i set caption for SDI? Pin
Christian Graus17-Sep-06 20:12
protectorChristian Graus17-Sep-06 20:12 
GeneralRe: How can i set caption for SDI? Pin
Hamid_RT17-Sep-06 20:38
Hamid_RT17-Sep-06 20:38 
GeneralRe: How can i set caption for SDI? Pin
kiranin17-Sep-06 20:31
kiranin17-Sep-06 20:31 

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.