Click here to Skip to main content
15,913,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to import structure variables from another cpp file Pin
raju_shiva3-Jul-10 1:35
raju_shiva3-Jul-10 1:35 
AnswerRe: How to import structure variables from another cpp file Pin
CPallini3-Jul-10 2:13
mveCPallini3-Jul-10 2:13 
AnswerRe: How to import structure variables from another cpp file Pin
Code-o-mat3-Jul-10 2:26
Code-o-mat3-Jul-10 2:26 
QuestionIDispEventSimpleImpl Pin
shakumar_213-Jul-10 1:32
shakumar_213-Jul-10 1:32 
Questionstrtok Pin
T.RATHA KRISHNAN2-Jul-10 18:45
T.RATHA KRISHNAN2-Jul-10 18:45 
AnswerRe: strtok Pin
elchupathingy2-Jul-10 19:26
elchupathingy2-Jul-10 19:26 
GeneralRe: strtok Pin
Stephen Hewitt4-Jul-10 14:42
Stephen Hewitt4-Jul-10 14:42 
AnswerRe: strtok Pin
CPallini2-Jul-10 23:36
mveCPallini2-Jul-10 23:36 
As already suggested, c_str method returns a const char * and you cannot pass it to the strtok function.
As workarounds you may:
  • Iteratively use the string find method.
  • copy the string content to a C character array (for instance using strdup) and then use strtok on the latter.

Smile | :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: strtok Pin
Chris Losinger5-Jul-10 4:24
professionalChris Losinger5-Jul-10 4:24 
AnswerRe: strtok Pin
Aescleal5-Jul-10 22:03
Aescleal5-Jul-10 22:03 
QuestionSmallestInt-need algo Pin
mohitadube2-Jul-10 9:48
mohitadube2-Jul-10 9:48 
AnswerRe: SmallestInt-need algo Pin
Richard Andrew x642-Jul-10 9:55
professionalRichard Andrew x642-Jul-10 9:55 
QuestionNumTrans-need alogorithm Pin
mohitadube2-Jul-10 9:45
mohitadube2-Jul-10 9:45 
Questionabout apihook Pin
rockago2-Jul-10 7:17
rockago2-Jul-10 7:17 
AnswerRe: about apihook Pin
rp_suman3-Jul-10 0:55
rp_suman3-Jul-10 0:55 
GeneralRe: about apihook Pin
rockago3-Jul-10 11:09
rockago3-Jul-10 11:09 
QuestionHow i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 5:33
humais2-Jul-10 5:33 
AnswerRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan2-Jul-10 7:10
mveRichard MacCutchan2-Jul-10 7:10 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 8:12
humais2-Jul-10 8:12 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
Richard MacCutchan2-Jul-10 8:34
mveRichard MacCutchan2-Jul-10 8:34 
AnswerRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 8:35
mveCPallini2-Jul-10 8:35 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 8:54
humais2-Jul-10 8:54 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 9:21
mveCPallini2-Jul-10 9:21 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
humais2-Jul-10 9:29
humais2-Jul-10 9:29 
GeneralRe: How i can save DC in Hbitmap...so i can use it Cimage...in SDI MFC Pin
CPallini2-Jul-10 10:22
mveCPallini2-Jul-10 10:22 

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.