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

C / C++ / MFC

 
GeneralRe: stack trace in exception Pin
George_George8-Jul-08 22:09
George_George8-Jul-08 22:09 
Questionhow to change menu font? Pin
tataxin8-Jul-08 16:30
tataxin8-Jul-08 16:30 
AnswerRe: how to change menu font? Pin
halibobo8-Jul-08 17:00
halibobo8-Jul-08 17:00 
GeneralRe: how to change menu font? Pin
tataxin8-Jul-08 20:30
tataxin8-Jul-08 20:30 
GeneralRe: how to change menu font? Pin
halibobo9-Jul-08 17:32
halibobo9-Jul-08 17:32 
AnswerRe: how to change menu font? Pin
Iain Clarke, Warrior Programmer8-Jul-08 23:56
Iain Clarke, Warrior Programmer8-Jul-08 23:56 
AnswerRe: how to change menu font? Pin
tataxin13-Jul-08 14:26
tataxin13-Jul-08 14:26 
Questiondetecting invalid iterators Pin
bkelly138-Jul-08 15:28
bkelly138-Jul-08 15:28 
When using an STL with iterators, what is the right way to determine if the iterator is valid? Start with:
Vector < CMyClass * > MyList;
Vector < CMyClass * >::iterator Iter_1;
Vector < CMyClass * >::iterator Iter_2;

The program creates object of type CMyClass and puts pointers to those objects in the container. The program will compare various objects in the container with other objects, hence the need for two iterators.

For various reasons, either of the iterators might not be valid at any given time. If not, then I want to do Iter_1.begin(). If the iterator is valid, I don’t want to reset it. What test should be done to determine if it is valid?

If I delete an item that an iterator is referencing, is it valid to increment or decrement the iterator to get to either the next item in the list or the end of the list?

Thanks for your time

AnswerRe: detecting invalid iterators Pin
Stephen Hewitt8-Jul-08 15:44
Stephen Hewitt8-Jul-08 15:44 
Questionali rafiee Pin
fazel dehghani8-Jul-08 8:39
fazel dehghani8-Jul-08 8:39 
AnswerRe: ali rafiee Pin
Stephen Hewitt8-Jul-08 15:15
Stephen Hewitt8-Jul-08 15:15 
QuestionControlling properties during runtime. Pin
Like2Byte8-Jul-08 8:32
Like2Byte8-Jul-08 8:32 
QuestionRe: Controlling properties during runtime. Pin
Mark Salsbery8-Jul-08 8:48
Mark Salsbery8-Jul-08 8:48 
AnswerRe: Controlling properties during runtime. Pin
led mike8-Jul-08 9:02
led mike8-Jul-08 9:02 
GeneralRe: Controlling properties during runtime. Pin
Mark Salsbery8-Jul-08 9:09
Mark Salsbery8-Jul-08 9:09 
GeneralRe: Controlling properties during runtime. Pin
led mike8-Jul-08 9:24
led mike8-Jul-08 9:24 
GeneralRe: Controlling properties during runtime. Pin
Mark Salsbery8-Jul-08 9:28
Mark Salsbery8-Jul-08 9:28 
QuestionFSOUND_Stream_Open library takes so much time to open a .MP3 file Pin
shinewine8-Jul-08 8:29
shinewine8-Jul-08 8:29 
QuestionRe: FSOUND_Stream_Open library takes so much time to open a .MP3 file Pin
Mark Salsbery8-Jul-08 8:51
Mark Salsbery8-Jul-08 8:51 
AnswerRe: FSOUND_Stream_Open library takes so much time to open a .MP3 file Pin
killabyte8-Jul-08 12:38
killabyte8-Jul-08 12:38 
QuestionTab in a SDI View or MainFrame Pin
godspeed1238-Jul-08 6:12
godspeed1238-Jul-08 6:12 
QuestionRe: Tab in a SDI View or MainFrame Pin
Mark Salsbery8-Jul-08 7:09
Mark Salsbery8-Jul-08 7:09 
AnswerRe: Tab in a SDI View or MainFrame Pin
godspeed1238-Jul-08 7:22
godspeed1238-Jul-08 7:22 
GeneralRe: Tab in a SDI View or MainFrame Pin
Mark Salsbery8-Jul-08 7:57
Mark Salsbery8-Jul-08 7:57 
GeneralRe: Tab in a SDI View or MainFrame Pin
godspeed1238-Jul-08 7:58
godspeed1238-Jul-08 7:58 

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.