Click here to Skip to main content
15,915,336 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: My first Win32 program... Pin
zafersavas3-Jun-08 5:24
zafersavas3-Jun-08 5:24 
GeneralRe: My first Win32 program... Pin
David Crow3-Jun-08 6:51
David Crow3-Jun-08 6:51 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 3:56
sudhir_Kumar3-Jun-08 3:56 
AnswerRe: My first Win32 program... Pin
Hamid_RT3-Jun-08 4:01
Hamid_RT3-Jun-08 4:01 
AnswerRe: My first Win32 program... Pin
sudhir_Kumar3-Jun-08 4:11
sudhir_Kumar3-Jun-08 4:11 
AnswerRe: My first Win32 program... Pin
toxcct3-Jun-08 5:02
toxcct3-Jun-08 5:02 
QuestionDifference b/w Unions and Structures... Pin
xelios3-Jun-08 3:12
xelios3-Jun-08 3:12 
AnswerRe: Difference b/w Unions and Structures... Pin
CPallini3-Jun-08 3:20
mveCPallini3-Jun-08 3:20 
Basically the members of a union share the same memory address (while the members of a struct have distinct memory addresses).
The above implies, for instance:
union MyUnion
{
int i;
float f;
};

struct MyStruct
{
int i;
float f;
};

void main()
{
  MyUnion u;
  MyStruct s;
  u.i = 5; // this also changes u.f
  s.i = 5; // this doesn't change s.f
}


and, conceptually, sizeof(MyStruct)=sizeof(int)+sizeof(float) while sizeof(MyUnion)= max(sizeof(int), sizeof(float))
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


AnswerRe: Difference b/w Unions and Structures... Pin
Alan Balkany3-Jun-08 3:20
Alan Balkany3-Jun-08 3:20 
GeneralRe: Difference b/w Unions and Structures... Pin
DQNOK3-Jun-08 9:28
professionalDQNOK3-Jun-08 9:28 
AnswerRe: Difference b/w Unions and Structures... Pin
toxcct3-Jun-08 3:22
toxcct3-Jun-08 3:22 
AnswerRe: Difference b/w Unions and Structures... Pin
Hamid_RT3-Jun-08 3:32
Hamid_RT3-Jun-08 3:32 
General[Message Deleted] Pin
toxcct3-Jun-08 3:33
toxcct3-Jun-08 3:33 
GeneralRe: Difference b/w Unions and Structures... Pin
Hamid_RT3-Jun-08 4:00
Hamid_RT3-Jun-08 4:00 
AnswerRe: Difference b/w Unions and Structures... Pin
sudhir_Kumar3-Jun-08 3:59
sudhir_Kumar3-Jun-08 3:59 
Questionwhere can i get some unix filesystem emulator? Pin
sunerbun3-Jun-08 2:25
sunerbun3-Jun-08 2:25 
QuestionRe: where can i get some unix filesystem emulator? Pin
CPallini3-Jun-08 2:49
mveCPallini3-Jun-08 2:49 
AnswerRe: where can i get some unix filesystem emulator? Pin
toxcct3-Jun-08 2:55
toxcct3-Jun-08 2:55 
GeneralRe: where can i get some unix filesystem emulator? Pin
Hamid_RT3-Jun-08 3:10
Hamid_RT3-Jun-08 3:10 
GeneralRe: where can i get some unix filesystem emulator? Pin
toxcct3-Jun-08 3:12
toxcct3-Jun-08 3:12 
AnswerRe: where can i get some unix filesystem emulator? Pin
Rajkumar R3-Jun-08 3:11
Rajkumar R3-Jun-08 3:11 
QuestionIf one application is running second doesn't show up Pin
VCProgrammer3-Jun-08 1:57
VCProgrammer3-Jun-08 1:57 
AnswerRe: If one application is running second doesn't show up Pin
toxcct3-Jun-08 2:00
toxcct3-Jun-08 2:00 
GeneralRe: If one application is running second doesn't show up Pin
VCProgrammer3-Jun-08 2:21
VCProgrammer3-Jun-08 2:21 
GeneralRe: If one application is running second doesn't show up Pin
toxcct3-Jun-08 2:22
toxcct3-Jun-08 2:22 

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.