Click here to Skip to main content
15,845,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionBeginner with C++ - Need helps with overload member function error Pin
LongDuyTran10-Nov-11 20:21
LongDuyTran10-Nov-11 20:21 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole10-Nov-11 21:30
Chuck O'Toole10-Nov-11 21:30 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
LongDuyTran11-Nov-11 3:19
LongDuyTran11-Nov-11 3:19 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Chuck O'Toole11-Nov-11 5:41
Chuck O'Toole11-Nov-11 5:41 
GeneralRe: Beginner with C++ - Need helps with overload member function error Pin
krmed11-Nov-11 8:05
krmed11-Nov-11 8:05 
AnswerRe: Beginner with C++ - Need helps with overload member function error Pin
Stefan_Lang11-Nov-11 3:17
Stefan_Lang11-Nov-11 3:17 
QuestionWindows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 8:55
sdancer7510-Nov-11 8:55 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 9:35
professionalRichard Andrew x6410-Nov-11 9: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 10:26
sdancer7510-Nov-11 10:26 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 10:29
professionalRichard Andrew x6410-Nov-11 10:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 22:51
sdancer7510-Nov-11 22:51 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 9:36
professionalChris Losinger10-Nov-11 9:36 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 10:29
sdancer7510-Nov-11 10:29 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chris Losinger10-Nov-11 11:03
professionalChris Losinger10-Nov-11 11:03 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 22:52
sdancer7510-Nov-11 22:52 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chuck O'Toole10-Nov-11 17:35
Chuck O'Toole10-Nov-11 17:35 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
jschell10-Nov-11 9:38
jschell10-Nov-11 9:38 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 10:32
sdancer7510-Nov-11 10:32 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard MacCutchan10-Nov-11 12:33
mveRichard MacCutchan10-Nov-11 12:33 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Chuck O'Toole10-Nov-11 10:42
Chuck O'Toole10-Nov-11 10:42 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Albert Holguin10-Nov-11 15:54
professionalAlbert Holguin10-Nov-11 15:54 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Richard Andrew x6410-Nov-11 10:44
professionalRichard Andrew x6410-Nov-11 10:44 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 22:49
sdancer7510-Nov-11 22:49 
AnswerRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
Erudite_Eric10-Nov-11 21:59
Erudite_Eric10-Nov-11 21:59 
GeneralRe: Windows has triggered a breakpoint in xxxxx, This may be due a corruption of the heap Pin
sdancer7510-Nov-11 22:55
sdancer7510-Nov-11 22: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.