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

C / C++ / MFC

 
GeneralRe: DLL Hell ? Pin
Haakon S.14-Aug-09 4:12
Haakon S.14-Aug-09 4:12 
AnswerRe: DLL Hell ? Pin
Randor 14-Aug-09 2:24
professional Randor 14-Aug-09 2:24 
GeneralRe: DLL Hell ? Pin
Haakon S.14-Aug-09 4:10
Haakon S.14-Aug-09 4:10 
GeneralRe: DLL Hell ? Pin
Randor 14-Aug-09 11:00
professional Randor 14-Aug-09 11:00 
GeneralRe: DLL Hell ? Pin
Haakon S.16-Aug-09 10:13
Haakon S.16-Aug-09 10:13 
QuestionUnion, Help me this code!! Pin
nhimconlazy13-Aug-09 22:59
nhimconlazy13-Aug-09 22:59 
AnswerRe: Union, Help me this code!! Pin
_AnsHUMAN_ 14-Aug-09 0:06
_AnsHUMAN_ 14-Aug-09 0:06 
AnswerRe: Union, Help me this code!! Pin
Iain Clarke, Warrior Programmer14-Aug-09 1:31
Iain Clarke, Warrior Programmer14-Aug-09 1:31 
Anshuman is right - it should be 400...

But I notice a coincidence... 256+144 = 400. Are you on some weird architecture? I;ve never heard of 8bit ints, but...

If you'd put in BYTE, or char, I'd be sure of the answer.

Try:
cout << sizeof (U);
u.x = 100;
cout << u.x; // should give 100
u.y = 127;
cout << u.x;  // should give 127
u.x = 257;    
cout << u.x;  // should give 257 - but does it give 1?
cout << (double) (u.x);  // should give 257 - but does it give 1?


This should set some light on your problem.

Iain.

I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[^]

QuestionHow to dynamically load values in String table Pin
Pryabu13-Aug-09 22:02
Pryabu13-Aug-09 22:02 
AnswerRe: How to dynamically load values in String table Pin
Rajesh R Subramanian13-Aug-09 22:19
professionalRajesh R Subramanian13-Aug-09 22:19 
GeneralRe: How to dynamically load values in String table Pin
Pryabu13-Aug-09 23:05
Pryabu13-Aug-09 23:05 
GeneralRe: How to dynamically load values in String table Pin
Rajesh R Subramanian13-Aug-09 23:13
professionalRajesh R Subramanian13-Aug-09 23:13 
GeneralRe: How to dynamically load values in String table Pin
Pryabu13-Aug-09 23:19
Pryabu13-Aug-09 23:19 
GeneralRe: How to dynamically load values in String table Pin
Rajesh R Subramanian13-Aug-09 23:31
professionalRajesh R Subramanian13-Aug-09 23:31 
GeneralRe: How to dynamically load values in String table Pin
Pryabu13-Aug-09 23:45
Pryabu13-Aug-09 23:45 
GeneralRe: How to dynamically load values in String table Pin
kolecat14-Aug-09 5:29
kolecat14-Aug-09 5:29 
GeneralRe: How to dynamically load values in String table Pin
Pryabu14-Aug-09 1:16
Pryabu14-Aug-09 1:16 
QuestionCombobox.. Pin
kumar sanghvi13-Aug-09 21:53
kumar sanghvi13-Aug-09 21:53 
AnswerRe: Combobox.. Pin
Bacon Ultimate Cheeseburger14-Aug-09 10:29
Bacon Ultimate Cheeseburger14-Aug-09 10:29 
QuestionNon-blocking COM method calls Pin
sashoalm13-Aug-09 21:11
sashoalm13-Aug-09 21:11 
AnswerRe: Non-blocking COM method calls Pin
Garth J Lancaster13-Aug-09 23:49
professionalGarth J Lancaster13-Aug-09 23:49 
GeneralRe: Non-blocking COM method calls Pin
sashoalm14-Aug-09 8:56
sashoalm14-Aug-09 8:56 
AnswerRe: Non-blocking COM method calls Pin
KarstenK14-Aug-09 2:57
mveKarstenK14-Aug-09 2:57 
QuestionCan I use select instead Sleep? Pin
hanlei000000000913-Aug-09 20:48
hanlei000000000913-Aug-09 20:48 
AnswerRe: Can I use select instead Sleep? Pin
KarstenK13-Aug-09 21:11
mveKarstenK13-Aug-09 21: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.