Click here to Skip to main content
15,899,825 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
David Crow21-May-10 3:08
David Crow21-May-10 3:08 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Aescleal21-May-10 6:03
Aescleal21-May-10 6:03 
AnswerRe: Extract System's register's value by usiong 'C' language Pin
Richard MacCutchan20-May-10 21:15
mveRichard MacCutchan20-May-10 21:15 
GeneralRe: Extract System's register's value by usiong 'C' language Pin
kushMuchaal20-May-10 23:54
kushMuchaal20-May-10 23:54 
QuestionGetWindowRect() for CEdit Pin
Anu_Bala20-May-10 18:37
Anu_Bala20-May-10 18:37 
AnswerRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 19:34
ThatsAlok20-May-10 19:34 
GeneralRe: GetWindowRect() for CEdit Pin
Anu_Bala20-May-10 20:57
Anu_Bala20-May-10 20:57 
GeneralRe: GetWindowRect() for CEdit Pin
ThatsAlok20-May-10 23:31
ThatsAlok20-May-10 23:31 
QuestionHelp to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit20-May-10 17:27
ndkit20-May-10 17:27 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Garth J Lancaster20-May-10 18:10
professionalGarth J Lancaster20-May-10 18:10 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
David Crow21-May-10 3:10
David Crow21-May-10 3:10 
GeneralRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
ndkit23-May-10 23:48
ndkit23-May-10 23:48 
AnswerRe: Help to develop a service to get UPS information by unmanaged C++ code in Win7 Pin
Rick York21-May-10 10:17
mveRick York21-May-10 10:17 
QuestionHow to stop CComboBox from interrupting thread? Pin
Greg Ellis20-May-10 17:06
Greg Ellis20-May-10 17:06 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Garth J Lancaster20-May-10 18:19
professionalGarth J Lancaster20-May-10 18:19 
GeneralRe: How to stop CComboBox from interrupting thread? Pin
Greg Ellis21-May-10 3:42
Greg Ellis21-May-10 3:42 
AnswerRe: How to stop CComboBox from interrupting thread? Pin
Stephen Hewitt20-May-10 20:18
Stephen Hewitt20-May-10 20:18 
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).

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.