Click here to Skip to main content
15,925,444 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralControlling my Console Pin
jinbabaj22-Jul-05 9:21
jinbabaj22-Jul-05 9:21 
Generalparse Pin
iboett2s22-Jul-05 2:56
iboett2s22-Jul-05 2:56 
GeneralRe: parse Pin
Christian Graus24-Jul-05 19:06
protectorChristian Graus24-Jul-05 19:06 
GeneralRe: parse Pin
gecool10-Aug-05 22:25
gecool10-Aug-05 22:25 
Generalstop another dialog exe Pin
chenggong22-Jul-05 2:48
chenggong22-Jul-05 2:48 
Generalmc++ icons/resources Pin
istrasci21-Jul-05 10:50
istrasci21-Jul-05 10:50 
GeneralRe: mc++ icons/resources Pin
ursus zeta27-Jul-05 9:50
ursus zeta27-Jul-05 9:50 
GeneralRefreshing the iterator Pin
Pazzuzu21-Jul-05 5:31
Pazzuzu21-Jul-05 5:31 
Hi All,

To demonstrate my problem,Have put in a small piece of code below :

Iam putting some strings into my list & while iterating the list,want to remove a particular element from the list.The following code crashes when I iterate further.

I know that I have to refresh my iterator somehow but how?.

How could I get around this problem?

Thanks..

list<string> pool;
pool.push_back("PageType1");
pool.push_back("PageType2");
pool.push_back("PageType3");
pool.push_back("PageType4");

list<string>::iterator iter = pool.begin();
while(iter!=pool.end())
{
long size = pool.size();
if(*iter=="PageType2")
pool.remove("PageType2");
iter++;
}
GeneralRe: Refreshing the iterator Pin
Christian Graus21-Jul-05 13:40
protectorChristian Graus21-Jul-05 13:40 
GeneralRe: Refreshing the iterator Pin
Pazzuzu25-Jul-05 2:30
Pazzuzu25-Jul-05 2:30 
QuestionSystem::Drawing::Rectangle problem??? Pin
richiemac20-Jul-05 3:20
richiemac20-Jul-05 3:20 
AnswerRe: System::Drawing::Rectangle problem??? Pin
Christian Graus20-Jul-05 12:44
protectorChristian Graus20-Jul-05 12:44 
GeneralRe: System::Drawing::Rectangle problem??? Pin
richiemac20-Jul-05 21:54
richiemac20-Jul-05 21:54 
GeneralRe: System::Drawing::Rectangle problem??? Pin
Christian Graus21-Jul-05 13:25
protectorChristian Graus21-Jul-05 13:25 
AnswerRe: System::Drawing::Rectangle problem??? Pin
ChewsHumans21-Jul-05 16:59
ChewsHumans21-Jul-05 16:59 
AnswerThanks guys! Pin
richiemac21-Jul-05 22:05
richiemac21-Jul-05 22:05 
Generalediting labels in tree view Pin
AlexR12319-Jul-05 1:10
AlexR12319-Jul-05 1:10 
GeneralAdd .NET Form into MFC application Pin
Gian19-Jul-05 0:50
Gian19-Jul-05 0:50 
GeneralRe: Add .NET Form into MFC application Pin
Sheng Jiang 蒋晟19-Jul-05 7:58
Sheng Jiang 蒋晟19-Jul-05 7:58 
GeneralRe: Add .NET Form into MFC application Pin
Gian20-Jul-05 1:10
Gian20-Jul-05 1:10 
Generalopen a new web page Pin
Blue_Skye18-Jul-05 8:31
Blue_Skye18-Jul-05 8:31 
GeneralRe: open a new web page Pin
Judah Gabriel Himango18-Jul-05 11:08
sponsorJudah Gabriel Himango18-Jul-05 11:08 
GeneralRe: open a new web page Pin
Blue_Skye18-Jul-05 16:42
Blue_Skye18-Jul-05 16:42 
QuestionHow to integrate with AIM, YM, and MSN messenger Pin
Asad Hussain18-Jul-05 4:51
Asad Hussain18-Jul-05 4:51 
AnswerRe: How to integrate with AIM, YM, and MSN messenger Pin
Judah Gabriel Himango18-Jul-05 11:10
sponsorJudah Gabriel Himango18-Jul-05 11:10 

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.