Click here to Skip to main content
15,889,200 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why do some API calls not work with my windows service? Pin
Dave Bryant30-Sep-03 16:18
Dave Bryant30-Sep-03 16:18 
AnswerRe: Why do some API calls not work with my windows service? Pin
l a u r e n30-Sep-03 19:46
l a u r e n30-Sep-03 19:46 
QuestionGetting a window's class name? Pin
IGx8930-Sep-03 14:55
IGx8930-Sep-03 14:55 
AnswerRe: Getting a window's class name? Pin
Mike Dimmick1-Oct-03 2:20
Mike Dimmick1-Oct-03 2:20 
Generaloperator != for iterators Pin
mcoloney30-Sep-03 14:49
mcoloney30-Sep-03 14:49 
GeneralRe: operator != for iterators Pin
Dave Bryant30-Sep-03 14:52
Dave Bryant30-Sep-03 14:52 
GeneralRe: operator != for iterators Pin
mcoloney30-Sep-03 14:58
mcoloney30-Sep-03 14:58 
GeneralRe: operator != for iterators Pin
Dave Bryant30-Sep-03 15:02
Dave Bryant30-Sep-03 15:02 
I suspect it is because you are comparing an iterator with a const_iterator. Since the list passed in as a parameter is constant, it will only return a const_iterator, so you could either make the list non-cost, or pass in a const_iterator instead of an iterator as the first parameter (the better option as you do not appear to be modifying the list here). Alternatively, you could pass in the end iterator as a parameter rather than passing in the entire list - this is the approach used by STL, as then the type of container can be changed without modifying the function itself.

Dave
http://www.cloudsofheaven.org
GeneralRe: operator != for iterators Pin
mcoloney30-Sep-03 15:07
mcoloney30-Sep-03 15:07 
GeneralCode to show Sample Unicode Chars Pin
prpub130-Sep-03 14:29
sussprpub130-Sep-03 14:29 
GeneralThe for statement Pin
claytide30-Sep-03 11:50
claytide30-Sep-03 11:50 
GeneralRe: The for statement Pin
Christian Graus30-Sep-03 12:07
protectorChristian Graus30-Sep-03 12:07 
GeneralRe: The for statement Pin
Colin Angus Mackay30-Sep-03 12:36
Colin Angus Mackay30-Sep-03 12:36 
GeneralRe: The for statement Pin
Blake Coverett30-Sep-03 19:16
Blake Coverett30-Sep-03 19:16 
GeneralSimulating clicks.. Pin
Anonymous30-Sep-03 11:28
Anonymous30-Sep-03 11:28 
GeneralRe: Simulating clicks.. Pin
Ravi Bhavnani30-Sep-03 12:19
professionalRavi Bhavnani30-Sep-03 12:19 
GeneralRAPI Pin
Anthony988730-Sep-03 10:09
Anthony988730-Sep-03 10:09 
GeneralRe: RAPI Pin
Jonas Larsson30-Sep-03 23:29
Jonas Larsson30-Sep-03 23:29 
GeneralBitConverter Pin
Arbage30-Sep-03 9:36
Arbage30-Sep-03 9:36 
GeneralRe: BitConverter Pin
Joaquín M López Muñoz30-Sep-03 10:18
Joaquín M López Muñoz30-Sep-03 10:18 
GeneralScrollbar Pin
Anonymous30-Sep-03 8:41
Anonymous30-Sep-03 8:41 
GeneralRe: Scrollbar Pin
Maximilien30-Sep-03 9:22
Maximilien30-Sep-03 9:22 
GeneralRe: Scrollbar Pin
Anonymous1-Oct-03 7:31
Anonymous1-Oct-03 7:31 
GeneralDialog background color Pin
Jahangir Jamshed30-Sep-03 7:23
sussJahangir Jamshed30-Sep-03 7:23 
GeneralRe: Dialog background color Pin
Jahangir Jamshed30-Sep-03 18:10
sussJahangir Jamshed30-Sep-03 18: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.