Click here to Skip to main content
15,902,112 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 'memset' vs '= {0}' Pin
Joe Woodbury25-Jun-03 7:51
professionalJoe Woodbury25-Jun-03 7:51 
GeneralRe: 'memset' vs '= {0}' Pin
Atlantys25-Jun-03 8:36
Atlantys25-Jun-03 8:36 
GeneralRe: stosd Pin
Joe Woodbury25-Jun-03 8:41
professionalJoe Woodbury25-Jun-03 8:41 
GeneralRe: 'memset' vs '= {0}' Pin
Jim Crafton25-Jun-03 7:56
Jim Crafton25-Jun-03 7:56 
GeneralRe: 'memset' vs '= {0}' Pin
David Crow25-Jun-03 8:13
David Crow25-Jun-03 8:13 
GeneralRe: 'memset' vs '= {0}' Pin
John R. Shaw25-Jun-03 8:34
John R. Shaw25-Jun-03 8:34 
GeneralRe: 'memset' vs '= {0}' Pin
Atlantys25-Jun-03 8:37
Atlantys25-Jun-03 8:37 
GeneralRe: 'memset' vs '= {0}' Pin
Michael Dunn25-Jun-03 14:43
sitebuilderMichael Dunn25-Jun-03 14:43 
Jim Crafton wrote:
s only usable (in terms of zeroing out the whole structure) on MS compi

No, that syntax for initializing a struct is inherited from C. It sets the first member to 0, then by definition sets all remaining members to 0. So if you write = {1} that sets the first member to 1, and all remaining members to 0.

--Mike--
"So where does that leave us? Well, it leaves us right back where we started, only more confused than before." -- Matt Gullett
Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber

GeneralRe: 'memset' vs '= {0}' Pin
Jim Crafton26-Jun-03 3:07
Jim Crafton26-Jun-03 3:07 
GeneralCoding droplist data in MFC Pin
keegan25-Jun-03 7:23
keegan25-Jun-03 7:23 
GeneralRe: Coding droplist data in MFC Pin
Maximilien25-Jun-03 7:33
Maximilien25-Jun-03 7:33 
GeneralRe: Coding droplist data in MFC Pin
keegan25-Jun-03 7:48
keegan25-Jun-03 7:48 
GeneralRe: Coding droplist data in MFC Pin
David Crow25-Jun-03 8:05
David Crow25-Jun-03 8:05 
GeneralRe: Coding droplist data in MFC Pin
keegan25-Jun-03 8:26
keegan25-Jun-03 8:26 
GeneralRe: Coding droplist data in MFC Pin
David Crow25-Jun-03 8:46
David Crow25-Jun-03 8:46 
GeneralRe: Coding droplist data in MFC Pin
keegan25-Jun-03 9:14
keegan25-Jun-03 9:14 
Generalrandom numbers rand() Pin
johnstonsk25-Jun-03 6:30
johnstonsk25-Jun-03 6:30 
GeneralRe: random numbers rand() Pin
Rob Caldecott25-Jun-03 6:38
Rob Caldecott25-Jun-03 6:38 
GeneralRe: random numbers rand() Pin
johnstonsk25-Jun-03 6:55
johnstonsk25-Jun-03 6:55 
GeneralRe: random numbers rand() Pin
David Crow25-Jun-03 7:01
David Crow25-Jun-03 7:01 
GeneralRe: random numbers rand() Pin
johnstonsk25-Jun-03 7:17
johnstonsk25-Jun-03 7:17 
GeneralRe: random numbers rand() Pin
Jamie Hale25-Jun-03 8:09
Jamie Hale25-Jun-03 8:09 
GeneralRe: random numbers rand() Pin
johnstonsk25-Jun-03 9:00
johnstonsk25-Jun-03 9:00 
GeneralRe: random numbers rand() [edited] Pin
Jamie Hale25-Jun-03 9:16
Jamie Hale25-Jun-03 9:16 
GeneralExecutable Creation time Pin
gbenguita25-Jun-03 6:27
gbenguita25-Jun-03 6:27 

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.