Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEnable Controls Pin
14-Jun-02 11:14
suss14-Jun-02 11:14 
GeneralStrange unhandled exception. Pin
redeemer14-Jun-02 10:57
redeemer14-Jun-02 10:57 
GeneralRe: Strange unhandled exception. Pin
14-Jun-02 11:26
suss14-Jun-02 11:26 
GeneralRe: Strange unhandled exception. Pin
Mike Nordell14-Jun-02 11:27
Mike Nordell14-Jun-02 11:27 
GeneralRe: Strange unhandled exception. Pin
Tim Smith14-Jun-02 11:36
Tim Smith14-Jun-02 11:36 
GeneralRe: Strange unhandled exception. Pin
redeemer14-Jun-02 12:05
redeemer14-Jun-02 12:05 
GeneralRe: Strange unhandled exception. Pin
Tim Smith14-Jun-02 17:23
Tim Smith14-Jun-02 17:23 
GeneralRe: Strange unhandled exception. Pin
Matt Gullett14-Jun-02 16:52
Matt Gullett14-Jun-02 16:52 
As others have said, use delete[].

Also (unless I'm half asleep), you are not allocating enough space for the string (you are using strcpy which will copy the ending NULL). You need to allocate strlen(target), not strlen(target)-1.

GeneralRe: Strange unhandled exception. Pin
Tim Smith14-Jun-02 17:23
Tim Smith14-Jun-02 17:23 
GeneralHelp - Scrollbars are gone! Pin
14-Jun-02 10:35
suss14-Jun-02 10:35 
GeneralProgrammatically Run a Remote Process Pin
Chad Koehler14-Jun-02 9:29
Chad Koehler14-Jun-02 9:29 
GeneralRe: Programmatically Run a Remote Process Pin
Jason Henderson14-Jun-02 16:44
Jason Henderson14-Jun-02 16:44 
GeneralIs there a function for replacing substrings inside a string with a new string? (non-MFC) Pin
redeemer14-Jun-02 8:42
redeemer14-Jun-02 8:42 
GeneralRe: Is there a function for replacing substrings inside a string with a new string? Pin
Jason Henderson14-Jun-02 8:42
Jason Henderson14-Jun-02 8:42 
GeneralRe: Is there a function for replacing substrings inside a string with a new string? Pin
Chris Losinger14-Jun-02 8:50
professionalChris Losinger14-Jun-02 8:50 
GeneralGetting the location of a specific systray icon Pin
David Wulff14-Jun-02 8:40
David Wulff14-Jun-02 8:40 
GeneralAutomating VB COM Dll from ATL C++ Pin
14-Jun-02 8:28
suss14-Jun-02 8:28 
GeneralRe: Automating VB COM Dll from ATL C++ Pin
Paul M Watt14-Jun-02 17:09
mentorPaul M Watt14-Jun-02 17:09 
GeneralRe: Automating VB COM Dll from ATL C++ Pin
17-Jun-02 8:38
suss17-Jun-02 8:38 
Generalmsword automation Pin
14-Jun-02 8:27
suss14-Jun-02 8:27 
GeneralScrolling Problem Pin
14-Jun-02 8:19
suss14-Jun-02 8:19 
GeneralRe: Scrolling Problem Pin
lucy14-Jun-02 8:57
lucy14-Jun-02 8:57 
GeneralRe: Scrolling Problem Pin
14-Jun-02 9:52
suss14-Jun-02 9:52 
GeneralRe: Scrolling Problem Pin
14-Jun-02 10:44
suss14-Jun-02 10:44 
Questionhooking hardware interrupts? Pin
Xerces14-Jun-02 7:50
Xerces14-Jun-02 7:50 

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.