Click here to Skip to main content
15,892,537 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 7:09
followait11-Apr-08 7:09 
GeneralRe: Create a button whose id is ID_FILE_NEW, not be processed by CWinApp::OnFileNew Pin
followait11-Apr-08 7:18
followait11-Apr-08 7:18 
QuestionWhat is wrong with this iterator? Pin
vikramlinux10-Apr-08 22:41
vikramlinux10-Apr-08 22:41 
AnswerRe: What is wrong with this iterator? Pin
vikramlinux10-Apr-08 22:46
vikramlinux10-Apr-08 22:46 
GeneralRe: What is wrong with this iterator? Pin
Cedric Moonen10-Apr-08 22:58
Cedric Moonen10-Apr-08 22:58 
GeneralRe: What is wrong with this iterator? Pin
Stephen Hewitt13-Apr-08 14:21
Stephen Hewitt13-Apr-08 14:21 
GeneralRe: What is wrong with this iterator? Pin
Rajesh R Subramanian10-Apr-08 23:04
professionalRajesh R Subramanian10-Apr-08 23:04 
AnswerRe: What is wrong with this iterator? Pin
Cedric Moonen10-Apr-08 22:50
Cedric Moonen10-Apr-08 22:50 
What's the problem ?

Anyway, AFAIK, you can only check for equality on iterators (don't know if that is the case also on vector iterator). This your end loop condition should be:
myIntVectorIterator != myIntVector.end();

EDIT: I tested and you can do that with vector iterators (for list iterators, you can't). Anyway the problem is that you have to stop incrementing your iterator before the end of your vector. So replace <= by <. Otherwise, if you are at the end of your vector (not a valid element), you will still try to access the contents of the iterator (which is invalid).

Cédric Moonen
Software developer

Charting control [v1.3]

AnswerRe: What is wrong with this iterator? Pin
Jonathan [Darka]10-Apr-08 23:00
professionalJonathan [Darka]10-Apr-08 23:00 
GeneralRe: What is wrong with this iterator? Pin
vikramlinux11-Apr-08 1:31
vikramlinux11-Apr-08 1:31 
Generalafter pressing button dialog box should be pop up like Windos Explorer Start Button in SDK [modified] Pin
Pankaj Kothawade10-Apr-08 19:48
Pankaj Kothawade10-Apr-08 19:48 
GeneralRe: after pressing button dialog box should be pop up like Windos Explorer Start Button in SDK Pin
Hamid_RT12-Apr-08 5:45
Hamid_RT12-Apr-08 5:45 
Generalin-process server considerations Pin
George_George10-Apr-08 19:39
George_George10-Apr-08 19:39 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 20:14
Stephen Hewitt10-Apr-08 20:14 
GeneralRe: in-process server considerations Pin
George_George10-Apr-08 21:37
George_George10-Apr-08 21:37 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 21:39
Stephen Hewitt10-Apr-08 21:39 
GeneralRe: in-process server considerations Pin
George_George10-Apr-08 21:58
George_George10-Apr-08 21:58 
GeneralRe: in-process server considerations Pin
Stephen Hewitt10-Apr-08 22:04
Stephen Hewitt10-Apr-08 22:04 
GeneralRe: in-process server considerations Pin
George_George10-Apr-08 22:07
George_George10-Apr-08 22:07 
QuestionError loading ActiveX control in secondary desktop ? Pin
phucbaby10-Apr-08 19:31
phucbaby10-Apr-08 19:31 
GeneralRe: Error loading ActiveX control in secondary desktop ? Pin
phucbaby10-Apr-08 19:37
phucbaby10-Apr-08 19:37 
GeneralRe: Error loading ActiveX control in secondary desktop ? Pin
leenmie13-Apr-08 4:03
leenmie13-Apr-08 4:03 
GeneralWIN32 API to find Mouse Button State Pin
poda10-Apr-08 19:29
poda10-Apr-08 19:29 
GeneralRe: WIN32 API to find Mouse Button State Pin
Mark Salsbery10-Apr-08 19:54
Mark Salsbery10-Apr-08 19:54 
GeneralRe: WIN32 API to find Mouse Button State Pin
Stephen Hewitt10-Apr-08 20:19
Stephen Hewitt10-Apr-08 20:19 

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.