Click here to Skip to main content
15,921,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BSTR in C++ Pin
Axonn Echysttas27-Jun-07 9:24
Axonn Echysttas27-Jun-07 9:24 
GeneralRe: BSTR in C++ Pin
Randor 27-Jun-07 17:03
professional Randor 27-Jun-07 17:03 
GeneralRe: BSTR in C++ Pin
Axonn Echysttas27-Jun-07 21:47
Axonn Echysttas27-Jun-07 21:47 
QuestionCPropertySheet::DoModal and focus problem Pin
rp_suman26-Jun-07 19:42
rp_suman26-Jun-07 19:42 
QuestionRe: CPropertySheet::DoModal and focus problem Pin
prasad_som27-Jun-07 0:53
prasad_som27-Jun-07 0:53 
AnswerRe: CPropertySheet::DoModal and focus problem Pin
rp_suman1-Jul-07 18:10
rp_suman1-Jul-07 18:10 
QuestionDocking Dialog Bar Pin
g_sandipan26-Jun-07 19:17
g_sandipan26-Jun-07 19:17 
AnswerRe: Docking Dialog Bar Pin
Nibu babu thomas26-Jun-07 19:34
Nibu babu thomas26-Jun-07 19:34 
GeneralRe: Docking Dialog Bar Pin
g_sandipan26-Jun-07 20:19
g_sandipan26-Jun-07 20:19 
QuestionMFC GUI on Windows Server 2003 runs slow like hell Pin
GameProfessor26-Jun-07 17:44
GameProfessor26-Jun-07 17:44 
AnswerRe: MFC GUI on Windows Server 2003 runs slow like hell Pin
Mark Salsbery27-Jun-07 6:19
Mark Salsbery27-Jun-07 6:19 
GeneralRe: MFC GUI on Windows Server 2003 runs slow like hell Pin
GameProfessor27-Jun-07 15:54
GameProfessor27-Jun-07 15:54 
GeneralRe: MFC GUI on Windows Server 2003 runs slow like hell Pin
Mark Salsbery28-Jun-07 7:23
Mark Salsbery28-Jun-07 7:23 
QuestionHow to push indeterminate size data into vector Pin
hanlei000000000926-Jun-07 16:43
hanlei000000000926-Jun-07 16:43 
AnswerRe: How to push indeterminate size data into vector Pin
Christian Graus26-Jun-07 17:08
protectorChristian Graus26-Jun-07 17:08 
AnswerRe: How to push indeterminate size data into vector Pin
Stephen Hewitt26-Jun-07 17:20
Stephen Hewitt26-Jun-07 17:20 
AnswerI resolve this problem by vector<vector Pin
hanlei000000000926-Jun-07 17:41
hanlei000000000926-Jun-07 17:41 
GeneralRe: I resolve this problem by vector&lt;vector Pin
Steve Echols26-Jun-07 18:20
Steve Echols26-Jun-07 18:20 
Questionhow to obtain messages that have been posted/sent into a control? Pin
awah26-Jun-07 16:21
awah26-Jun-07 16:21 
AnswerRe: how to obtain messages that have been posted/sent into a control? Pin
Hans Dietrich26-Jun-07 16:48
mentorHans Dietrich26-Jun-07 16:48 
AnswerRe: how to obtain messages that have been posted/sent into a control? Pin
JudyL_MD27-Jun-07 2:36
JudyL_MD27-Jun-07 2:36 
Questionhow to do colour image quantization using VC++ Pin
gentleguy26-Jun-07 15:00
gentleguy26-Jun-07 15:00 
QuestionRe: how to do colour image quantization using VC++ Pin
Hamid_RT26-Jun-07 19:13
Hamid_RT26-Jun-07 19:13 
Questionhelp with a lil short piece of code Pin
andyspartyshop26-Jun-07 14:28
andyspartyshop26-Jun-07 14:28 
while(getline(passage,nextword,'\n'))
{
int status = 0;
transform(nextword.begin(), nextword.end(), nextword.begin(), (int(*)(int))std::toupper);
int x=nextword.find(test1);
int y=nextword.find(test2);
int z=nextword.find(test3);
if(x!=std::string::npos)
{
status = 1;
}
if(y!=std::string::npos|| z!=std::string::npos)
{
status = 2;
}
string nextword;
ostringstream os(nextword);
string readInWord;
while (os>>readInWord)
{
if (status==0)
++wordCount[readInWord];
else if (status==1)
{
++wordCount[readInWord];
++single[readInWord];
}
else if (status==2)
{
++wordCount[readInWord];
++single[readInWord];
++compound[readInWord];
}

}
}



I am trying hard to get this code to work but seems to be something wrong. I am testing for 3 things and if present I am trying to update certain maps accordingly. I am getting some sort of error on the ostringstream os(nextword) not sure what this is or what it does. Someone put it in my code saying this would fix my problem but I have yet to figure it out.
AnswerRe: help with a lil short piece of code Pin
Christian Graus26-Jun-07 14:59
protectorChristian Graus26-Jun-07 14:59 

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.