Click here to Skip to main content
15,891,730 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhy add member function in classview does not work for overloaded function operator <() Pin
jianzhuhuai28-Oct-09 14:15
jianzhuhuai28-Oct-09 14:15 
AnswerRe: why add member function in classview does not work for overloaded function operator <() Pin
«_Superman_»28-Oct-09 14:37
professional«_Superman_»28-Oct-09 14:37 
AnswerRe: why add member function in classview does not work for overloaded function operator <() Pin
Adam Roderick J28-Oct-09 18:30
Adam Roderick J28-Oct-09 18:30 
Questionconvert CString to const char * Pin
Manmohan2928-Oct-09 7:23
Manmohan2928-Oct-09 7:23 
AnswerRe: convert CString to const char * Pin
David Crow28-Oct-09 7:37
David Crow28-Oct-09 7:37 
AnswerRe: convert CString to const char * Pin
transoft28-Oct-09 7:39
transoft28-Oct-09 7:39 
AnswerRe: convert CString to const char * Pin
«_Superman_»28-Oct-09 7:56
professional«_Superman_»28-Oct-09 7:56 
AnswerRe: convert CString to const char * Pin
Kushagra Tiwari28-Oct-09 21:31
Kushagra Tiwari28-Oct-09 21:31 
Firstly if you are using wide char (Unicode)then CString will be of Type CStringW by default and thus all us need to do is if u have :

CString str;
// do the following
CW2A(str); // this will give u const char*

else if its Multibyte charset project CString will be of type CStringA by default:
// u can directly cast it to char* as below:

CString str;
//do the following
(CHAR*)str.GetString();// this will give u Const char*

If you like this ans mark it and close the thread

Regards
Kushagra
QuestionOpenCV application error Pin
dSolariuM28-Oct-09 5:28
dSolariuM28-Oct-09 5:28 
QuestionRe: OpenCV application error Pin
David Crow28-Oct-09 5:34
David Crow28-Oct-09 5:34 
AnswerRe: OpenCV application error Pin
dSolariuM28-Oct-09 6:08
dSolariuM28-Oct-09 6:08 
QuestionRe: OpenCV application error Pin
David Crow28-Oct-09 6:18
David Crow28-Oct-09 6:18 
AnswerRe: OpenCV application error Pin
dSolariuM28-Oct-09 6:20
dSolariuM28-Oct-09 6:20 
QuestionRe: OpenCV application error Pin
David Crow28-Oct-09 7:17
David Crow28-Oct-09 7:17 
AnswerRe: OpenCV application error Pin
dSolariuM28-Oct-09 9:17
dSolariuM28-Oct-09 9:17 
GeneralRe: OpenCV application error Pin
David Crow28-Oct-09 9:43
David Crow28-Oct-09 9:43 
AnswerRe: OpenCV application error Pin
Tim Craig28-Oct-09 10:50
Tim Craig28-Oct-09 10:50 
AnswerRe: OpenCV application error Pin
David Gustavsson20-May-10 2:35
David Gustavsson20-May-10 2:35 
GeneralRe: OpenCV application error Pin
kpjobanputra30-Aug-10 6:14
kpjobanputra30-Aug-10 6:14 
AnswerRe: OpenCV application error Pin
Member 815410430-Oct-11 9:11
Member 815410430-Oct-11 9:11 
QuestionDialog box visibility Pin
Will-O28-Oct-09 5:18
Will-O28-Oct-09 5:18 
QuestionRe: Dialog box visibility Pin
David Crow28-Oct-09 5:29
David Crow28-Oct-09 5:29 
AnswerRe: Dialog box visibility Pin
Will-O28-Oct-09 6:36
Will-O28-Oct-09 6:36 
QuestionRe: Dialog box visibility Pin
David Crow28-Oct-09 7:19
David Crow28-Oct-09 7:19 
AnswerRe: Dialog box visibility Pin
loyal ginger28-Oct-09 8:43
loyal ginger28-Oct-09 8:43 

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.