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

C / C++ / MFC

 
QuestionClistBox owner draw not display Pin
s196675m11-Oct-07 18:47
s196675m11-Oct-07 18:47 
QuestionHow to lay some Text Edit Controls in a Scroll View Pin
today4220011-Oct-07 16:27
today4220011-Oct-07 16:27 
AnswerRe: How to lay some Text Edit Controls in a Scroll View Pin
Karismatic11-Oct-07 19:25
Karismatic11-Oct-07 19:25 
QuestionVector Assertion Failure. Pin
Michael10111-Oct-07 13:37
Michael10111-Oct-07 13:37 
AnswerRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 17:38
User 58385211-Oct-07 17:38 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 17:55
Michael10111-Oct-07 17:55 
GeneralRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 18:13
User 58385211-Oct-07 18:13 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:22
Michael10111-Oct-07 18:22 
Iter is initialised at the beginning of the program like this ->

register vector<short>::iterator Iter;

The -274 is the actual value of the Iterator but now that I've debugged it further I don't think that matters because on other occasions it's equal to something silly before the loop runs through again but the program doesn't fall over.

Have you ever had problems with Iterators after adding in a container to your vector? I will try your sample code above because I understand it clearly and does seem to be much safer.

Since this algorithm runs for long periods of time speed is important but for now I'll ignore that.

Cheers for the reply, thanks for the help,

Michael Smile | :)
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:29
Michael10111-Oct-07 18:29 
GeneralRe: Vector Assertion Failure. Pin
User 58385211-Oct-07 18:29
User 58385211-Oct-07 18:29 
GeneralRe: Vector Assertion Failure. Pin
Michael10111-Oct-07 18:42
Michael10111-Oct-07 18:42 
AnswerRe: Vector Assertion Failure. Pin
jhwurmbach11-Oct-07 21:51
jhwurmbach11-Oct-07 21:51 
QuestionRe: Vector Assertion Failure. Pin
David Crow12-Oct-07 2:46
David Crow12-Oct-07 2:46 
Questionconvert double to unsigned short Pin
l_d11-Oct-07 9:43
l_d11-Oct-07 9:43 
AnswerRe: convert double to unsigned short Pin
led mike11-Oct-07 10:12
led mike11-Oct-07 10:12 
JokeRe: convert double to unsigned short Pin
Mark Salsbery11-Oct-07 13:21
Mark Salsbery11-Oct-07 13:21 
AnswerRe: convert double to unsigned short Pin
Stephen Hewitt11-Oct-07 17:50
Stephen Hewitt11-Oct-07 17:50 
AnswerRe: convert double to unsigned short Pin
Nelek11-Oct-07 20:01
protectorNelek11-Oct-07 20:01 
GeneralRe: convert double to unsigned short Pin
led mike12-Oct-07 4:48
led mike12-Oct-07 4:48 
GeneralRe: convert double to unsigned short Pin
Nelek29-Oct-07 22:11
protectorNelek29-Oct-07 22:11 
QuestionFill Data in Active Window Pin
vikrant kpr11-Oct-07 9:21
vikrant kpr11-Oct-07 9:21 
QuestionImage enhancment Pin
Deepu Antony11-Oct-07 9:05
Deepu Antony11-Oct-07 9:05 
AnswerRe: Image enhancment Pin
led mike11-Oct-07 9:42
led mike11-Oct-07 9:42 
QuestionTemplate related error for non-template code? Pin
Franz Klein11-Oct-07 8:36
Franz Klein11-Oct-07 8:36 
AnswerRe: Template related error for non-template code? Pin
led mike11-Oct-07 8:58
led mike11-Oct-07 8: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.