Click here to Skip to main content
15,922,584 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: wclen returning wrong value Pin
Nibu babu thomas27-Aug-06 17:25
Nibu babu thomas27-Aug-06 17:25 
GeneralRe: wclen returning wrong value Pin
Waldermort27-Aug-06 20:13
Waldermort27-Aug-06 20:13 
QuestionAdding Components and control in VC2005 Pin
pimpim323227-Aug-06 8:08
pimpim323227-Aug-06 8:08 
AnswerRe: Adding Components and control in VC2005 Pin
pimpim323227-Aug-06 8:42
pimpim323227-Aug-06 8:42 
GeneralRe: Adding Components and control in VC2005 Pin
Wes Aday27-Aug-06 15:12
professionalWes Aday27-Aug-06 15:12 
Questionsearching in strings [modified] Pin
jon-8027-Aug-06 6:44
professionaljon-8027-Aug-06 6:44 
AnswerRe: searching in strings Pin
Kevin McFarlane27-Aug-06 6:55
Kevin McFarlane27-Aug-06 6:55 
AnswerRe: searching in strings Pin
Waldermort27-Aug-06 7:57
Waldermort27-Aug-06 7:57 
You are going to have to stop passing these strings around like they are normal strings, they are NOT!! They are classes and come with their own methods of accessing the data within them. You should also look at your error messages before you start asking for help. Look:

cSentenceList.cpp(70): error C2664: 'strstr' : cannot convert parameter 2 from 'const std::string *' to 'const char *'

The important words here are cannot convert parameter 2 from. It also gives you the line number (70), so you should go to that line and look at the second paramater to that function. The error then goes on to tell you more from 'const std::string *' to 'const char *'. The function wants a char * but you gave it a std::string*. Like I said the std::string has methods to access the data, and like I told you yesterday, use the .c_str() to get a const char*.
AnswerRe: searching in strings Pin
BlitzPackage27-Aug-06 15:40
BlitzPackage27-Aug-06 15:40 
GeneralRe: searching in strings Pin
Stephen Hewitt27-Aug-06 18:30
Stephen Hewitt27-Aug-06 18:30 
GeneralRe: searching in strings Pin
BlitzPackage28-Aug-06 7:55
BlitzPackage28-Aug-06 7:55 
Questionascii codes Pin
jon-8027-Aug-06 6:17
professionaljon-8027-Aug-06 6:17 
AnswerRe: ascii codes Pin
JWood27-Aug-06 7:39
JWood27-Aug-06 7:39 
AnswerRe: ascii codes Pin
jon-8028-Aug-06 7:41
professionaljon-8028-Aug-06 7:41 
GeneralRe: ascii codes Pin
JWood28-Aug-06 8:23
JWood28-Aug-06 8:23 
QuestionCRecordView Display Pin
ivanris27-Aug-06 5:37
ivanris27-Aug-06 5:37 
AnswerRe: CRecordView Display Pin
Mircea Puiu27-Aug-06 20:44
Mircea Puiu27-Aug-06 20:44 
GeneralRe: CRecordView Display Pin
ivanris28-Aug-06 3:29
ivanris28-Aug-06 3:29 
AnswerRe: CRecordView Display Pin
David Crow28-Aug-06 4:22
David Crow28-Aug-06 4:22 
QuestionHow to use recompiled header file? Pin
Super Lloyd27-Aug-06 4:09
Super Lloyd27-Aug-06 4:09 
AnswerRe: How to use recompiled header file? Pin
Waldermort27-Aug-06 4:35
Waldermort27-Aug-06 4:35 
QuestionToolbar Control Pin
mehrdadov27-Aug-06 2:29
mehrdadov27-Aug-06 2:29 
AnswerRe: Toolbar Control Pin
Christian Graus27-Aug-06 2:59
protectorChristian Graus27-Aug-06 2:59 
GeneralRe: Toolbar Control Pin
mehrdadov27-Aug-06 20:23
mehrdadov27-Aug-06 20:23 
GeneralRe: Toolbar Control Pin
Hamid_RT27-Aug-06 21:27
Hamid_RT27-Aug-06 21:27 

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.