Click here to Skip to main content
15,917,709 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Modal dialog - Close - ESC Pin
Michael Dunn22-Jan-06 21:11
sitebuilderMichael Dunn22-Jan-06 21:11 
GeneralRe: Modal dialog - Close - ESC Pin
Rajesh R Subramanian24-Jan-06 20:01
professionalRajesh R Subramanian24-Jan-06 20:01 
QuestionUnions Vs Struct. Pin
Prakash Nadar17-Jan-06 18:00
Prakash Nadar17-Jan-06 18:00 
AnswerRe: Unions Vs Struct. Pin
ky_rerun17-Jan-06 18:04
ky_rerun17-Jan-06 18:04 
GeneralRe: Unions Vs Struct. Pin
Prakash Nadar17-Jan-06 18:20
Prakash Nadar17-Jan-06 18:20 
GeneralRe: Unions Vs Struct. Pin
Prakash Nadar17-Jan-06 22:13
Prakash Nadar17-Jan-06 22:13 
AnswerRe: Unions Vs Struct. Pin
vallikumar17-Jan-06 18:33
vallikumar17-Jan-06 18:33 
GeneralRe: Unions Vs Struct. Pin
cmk17-Jan-06 19:22
cmk17-Jan-06 19:22 
vallikumar wrote:
A union type declaration is a template only. Memory is not reserved until the variable is declared.


? Not sure what you are trying to say.

Memory allocation (actually, setting a new high-water mark for the stack) for all stack variables is deferred until the start of the block they are declared in.

It sounds like you are trying to say that mem alloc is different for unions than for int's, struct's, ...

The size of a union is known at compile time (just like a struct) - it is the size of the largest member.


...cmk

Save the whales - collect the whole set
AnswerRe: Unions Vs Struct. Pin
Stephen Hewitt17-Jan-06 18:37
Stephen Hewitt17-Jan-06 18:37 
GeneralRe: Unions Vs Struct. Pin
Owner drawn17-Jan-06 18:45
Owner drawn17-Jan-06 18:45 
GeneralRe: Unions Vs Struct. Pin
Stephen Hewitt17-Jan-06 18:53
Stephen Hewitt17-Jan-06 18:53 
GeneralRe: Unions Vs Struct. Pin
Owner drawn17-Jan-06 18:58
Owner drawn17-Jan-06 18:58 
GeneralRe: Unions Vs Struct. Pin
QuickDeveloper17-Jan-06 19:02
QuickDeveloper17-Jan-06 19:02 
Questionhow to use CDC::GetCharWidth()! please give me a instance! Pin
ebinaini17-Jan-06 15:29
ebinaini17-Jan-06 15:29 
AnswerRe: how to use CDC::GetCharWidth()! please give me a instance! Pin
Stephen Hewitt17-Jan-06 16:25
Stephen Hewitt17-Jan-06 16:25 
QuestionCInternetSession could not run in a message loop? Pin
rushing17-Jan-06 15:09
rushing17-Jan-06 15:09 
AnswerRe: CInternetSession could not run in a message loop? Pin
Prakash Nadar17-Jan-06 17:56
Prakash Nadar17-Jan-06 17:56 
GeneralRe: CInternetSession could not run in a message loop? Pin
rushing17-Jan-06 21:54
rushing17-Jan-06 21:54 
GeneralRe: CInternetSession could not run in a message loop? Pin
Prakash Nadar17-Jan-06 22:36
Prakash Nadar17-Jan-06 22:36 
GeneralRe: CInternetSession could not run in a message loop? Pin
rushing18-Jan-06 3:56
rushing18-Jan-06 3:56 
GeneralRe: CInternetSession could not run in a message loop? Pin
Prakash Nadar18-Jan-06 4:18
Prakash Nadar18-Jan-06 4:18 
GeneralRe: CInternetSession could not run in a message loop? Pin
rushing18-Jan-06 15:33
rushing18-Jan-06 15:33 
GeneralRe: CInternetSession could not run in a message loop? Pin
rushing18-Jan-06 16:35
rushing18-Jan-06 16:35 
GeneralRe: CInternetSession could not run in a message loop? Pin
rushing19-Jan-06 22:14
rushing19-Jan-06 22:14 
GeneralRe: CInternetSession could not run in a message loop? Pin
Prakash Nadar19-Jan-06 22:24
Prakash Nadar19-Jan-06 22:24 

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.