Click here to Skip to main content
15,888,401 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBeginner with C++ - Need helps with overload member function error Pin
LongDuyTran10-Nov-11 19:21
LongDuyTran10-Nov-11 19:21 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole10-Nov-11 20:30
Chuck O'Toole10-Nov-11 20:30 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
LongDuyTran11-Nov-11 2:19
LongDuyTran11-Nov-11 2:19 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole11-Nov-11 4:41
Chuck O'Toole11-Nov-11 4:41 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
krmed11-Nov-11 7:05
krmed11-Nov-11 7:05 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Stefan_Lang11-Nov-11 2:17
Stefan_Lang11-Nov-11 2:17 
QuestionWindows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 7:55
sdancer7510-Nov-11 7:55 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 8:35
professionalRichard Andrew x6410-Nov-11 8:35 
The strcpy function keeps copying until it reaches a terminating null.

Since you did not initialize Signature, there is probably no null character contained in it.

Thus, strcpy is writing to memory that it should not. That is the cause of the error.

Try using the following code instead:

C++
char Singature[16] = { 0 };




The difficult we do right away...
...the impossible takes slightly longer.

GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 9:26
sdancer7510-Nov-11 9:26 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 9:29
professionalRichard Andrew x6410-Nov-11 9:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 21:51
sdancer7510-Nov-11 21:51 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 8:36
professionalChris Losinger10-Nov-11 8:36 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 9:29
sdancer7510-Nov-11 9:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 10:03
professionalChris Losinger10-Nov-11 10:03 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 21:52
sdancer7510-Nov-11 21:52 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chuck O'Toole10-Nov-11 16:35
Chuck O'Toole10-Nov-11 16:35 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
jschell10-Nov-11 8:38
jschell10-Nov-11 8:38 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 9:32
sdancer7510-Nov-11 9:32 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard MacCutchan10-Nov-11 11:33
mveRichard MacCutchan10-Nov-11 11:33 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap PinPopular
Chuck O'Toole10-Nov-11 9:42
Chuck O'Toole10-Nov-11 9:42 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Albert Holguin10-Nov-11 14:54
professionalAlbert Holguin10-Nov-11 14:54 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 9:44
professionalRichard Andrew x6410-Nov-11 9:44 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 21:49
sdancer7510-Nov-11 21:49 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Erudite_Eric10-Nov-11 20:59
Erudite_Eric10-Nov-11 20:59 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 21:55
sdancer7510-Nov-11 21:55 

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.