Click here to Skip to main content
15,890,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Parthiban20-May-10 23:38
Parthiban20-May-10 23:38 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Roger Allen21-May-10 6:16
Roger Allen21-May-10 6:16 
QuestionExperiencing trouble with passing input string to array [modified] Pin
computerpublic20-May-10 15:33
computerpublic20-May-10 15:33 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 15:48
sitebuilderLuc Pattyn20-May-10 15:48 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 15:59
computerpublic20-May-10 15:59 
AnswerRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:00
sitebuilderLuc Pattyn20-May-10 16:00 
GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:06
computerpublic20-May-10 16:06 
GeneralRe: Experiencing trouble with passing input string to array Pin
Luc Pattyn20-May-10 16:39
sitebuilderLuc Pattyn20-May-10 16:39 
If new string[Adder] does what I expect, it creates an array with size zero since Adder is zero the first time around. So there is no way you can store anything in it.
You probably need new string[Adder+1] to fix that, and it would fix the illegal access too, since now you have room for elements 0, 1, ... up to Adder.

When you read from the array (in a cout statement IIRC), you should only read elements that have been written to earlier in that very same array; so changing one index to zero and keeping the other at Adder, will fail each time but the first.

However, as I said before, I see no point in creating an entire array each time around, while only filling one element of that array. I fail to understand what it all is going to do, and I find it hard to believe it used to work before.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Experiencing trouble with passing input string to array Pin
computerpublic20-May-10 16:55
computerpublic20-May-10 16:55 
GeneralRe: Experiencing trouble with passing input string to array Pin
Aescleal20-May-10 22:21
Aescleal20-May-10 22:21 
AnswerRe: Experiencing trouble with passing input string to array Pin
Aescleal20-May-10 20:06
Aescleal20-May-10 20:06 
AnswerRe: it works perfectly now [modified] Pin
Software_Developer20-May-10 20:08
Software_Developer20-May-10 20:08 
GeneralRe: it works perfectly now Pin
Aescleal20-May-10 22:17
Aescleal20-May-10 22:17 
GeneralRe: You must be the Quality assurance team Pin
Software_Developer20-May-10 23:31
Software_Developer20-May-10 23:31 
QuestionHow to set breakpoint to step through CTabCtrl draw ... [modified] Pin
theFrenchHornet20-May-10 11:45
theFrenchHornet20-May-10 11:45 
Questionc++ combo list box Pin
mrby12320-May-10 5:55
mrby12320-May-10 5:55 
QuestionRe: c++ combo list box Pin
David Crow20-May-10 6:13
David Crow20-May-10 6:13 
AnswerRe: c++ combo list box Pin
mrby12320-May-10 6:25
mrby12320-May-10 6:25 
AnswerRe: c++ combo list box Pin
David Crow20-May-10 6:55
David Crow20-May-10 6:55 
GeneralRe: c++ combo list box Pin
mrby12320-May-10 9:58
mrby12320-May-10 9:58 
AnswerRe: c++ combo list box Pin
David Crow20-May-10 10:22
David Crow20-May-10 10:22 
GeneralRe: c++ combo list box Pin
mrby12320-May-10 12:23
mrby12320-May-10 12:23 
AnswerRe: c++ combo list box Pin
David Crow20-May-10 16:25
David Crow20-May-10 16:25 
GeneralRe: c++ combo list box [modified] Pin
mrby12320-May-10 18:54
mrby12320-May-10 18:54 
GeneralRe: c++ combo list box Pin
David Crow21-May-10 3:17
David Crow21-May-10 3:17 

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.