Click here to Skip to main content
15,913,055 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamically Updateable EXE Pin
David Crow26-Apr-04 7:05
David Crow26-Apr-04 7:05 
GeneralRe: Dynamically Updateable EXE Pin
Rick York26-Apr-04 7:34
mveRick York26-Apr-04 7:34 
GeneralVC++ Memory debug window Pin
Wheatbread26-Apr-04 6:46
Wheatbread26-Apr-04 6:46 
GeneralRe: VC++ Memory debug window Pin
Rick York26-Apr-04 7:28
mveRick York26-Apr-04 7:28 
GeneralRe: VC++ Memory debug window Pin
Prakash Nadar26-Apr-04 7:48
Prakash Nadar26-Apr-04 7:48 
GeneralRe: VC++ Memory debug window Pin
Rick York26-Apr-04 10:48
mveRick York26-Apr-04 10:48 
GeneralRe: VC++ Memory debug window Pin
Wheatbread26-Apr-04 8:12
Wheatbread26-Apr-04 8:12 
GeneralRe: VC++ Memory debug window Pin
Paul Ranson26-Apr-04 8:29
Paul Ranson26-Apr-04 8:29 
msgBuffer = new char [100] ;

Sets msgBuffer to the address of a an array of 100 characters. Fine.

memset (&msgBuffer,0, 100);

Overwrites the value of msgBuffer from the address of the array to 0, and then overwrites another 96 bytes with 0. Very wrong.

After that almost everything will fail sooner or later.

If you display in 'bytes' then the memory window will show a value of 0x04030201 as
01 02 03 04

IOW LSB first.

Paul
GeneralRe: VC++ Memory debug window Pin
Rick York26-Apr-04 11:21
mveRick York26-Apr-04 11:21 
GeneralRe: VC++ Memory debug window Pin
Wheatbread27-Apr-04 4:55
Wheatbread27-Apr-04 4:55 
GeneralMFC classes in my class Pin
pie26-Apr-04 6:32
pie26-Apr-04 6:32 
GeneralRe: MFC classes in my class Pin
jmkhael26-Apr-04 6:36
jmkhael26-Apr-04 6:36 
GeneralRe: MFC classes in my class Pin
pie26-Apr-04 6:42
pie26-Apr-04 6:42 
GeneralRe: MFC classes in my class Pin
jmkhael26-Apr-04 6:43
jmkhael26-Apr-04 6:43 
GeneralRe: MFC classes in my class Pin
pie26-Apr-04 6:46
pie26-Apr-04 6:46 
GeneralRe: MFC classes in my class Pin
jmkhael26-Apr-04 6:50
jmkhael26-Apr-04 6:50 
GeneralRe: MFC classes in my class Pin
pie26-Apr-04 6:52
pie26-Apr-04 6:52 
GeneralRe: MFC classes in my class Pin
jmkhael26-Apr-04 6:55
jmkhael26-Apr-04 6:55 
GeneralRe: MFC classes in my class Pin
David Crow26-Apr-04 6:47
David Crow26-Apr-04 6:47 
GeneralRe: MFC classes in my class Pin
David Crow26-Apr-04 6:49
David Crow26-Apr-04 6:49 
GeneralRe: MFC classes in my class Pin
pie26-Apr-04 6:50
pie26-Apr-04 6:50 
GeneralRe: MFC classes in my class Pin
David Crow26-Apr-04 7:03
David Crow26-Apr-04 7:03 
GeneralRe: MFC classes in my class Pin
pie26-Apr-04 7:05
pie26-Apr-04 7:05 
GeneralRe: MFC classes in my class Pin
Navin26-Apr-04 6:57
Navin26-Apr-04 6:57 
GeneralRe: MFC classes in my class Pin
Paul Ranson26-Apr-04 8:11
Paul Ranson26-Apr-04 8:11 

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.