Click here to Skip to main content
15,909,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Text in a math equation? Pin
toxcct27-Apr-04 2:01
toxcct27-Apr-04 2:01 
GeneralSkinMagic newbie seeking help Pin
Krugger40426-Apr-04 12:41
Krugger40426-Apr-04 12:41 
GeneralRe: SkinMagic newbie seeking help Pin
Prakash Nadar26-Apr-04 22:12
Prakash Nadar26-Apr-04 22:12 
GeneralDynamically Updateable EXE Pin
scrib26-Apr-04 6:56
scrib26-Apr-04 6:56 
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 
The memory window displays data sequentially. On Intel-style machines that would mean that it is LSB first.

On your memset calls, lose the the & on msgBuffer. It should be :

memset( msgBuffer, 0, sizeof( msgBuffer ) );

This is because the & means use the address of the pointer. You want just the pointer.

The point of all of this is to remove usage of literal constants. The reason is that if you need to bump that size to 200 then you would have to make changes in three places to accomodate that. That is a bad thing.

Also note that this is not ready for Unicode. That requires a different set of macros that calculate the size in characters, not bytes.

[edited - all wet]

__________________________________________
a two cent stamp short of going postal.

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 
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 

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.