I can i set size of integer variable should be fixed for
different operating systems(Ex i want integer size is
2bytes in OS)

Answers were Sorted based on User's Feedback



I can i set size of integer variable should be fixed for different operating systems(Ex i want int..

Answer / wizards

we can define with #ifdef's
Ex:
#ifdef OS==WINDOWS
int a:32;
#endif
#ifdef OS==UNIX
int a:64;
#endif

Is This Answer Correct ?    2 Yes 1 No

I can i set size of integer variable should be fixed for different operating systems(Ex i want int..

Answer / vijay visana

one can define integer class
like
class Int {
byte data[2];

public:
//overload all basic operation of integer here
//like + - etc

};

Is This Answer Correct ?    1 Yes 3 No

Post New Answer

More MFC Interview Questions

What is a critical section and how is it implemented?

2 Answers  


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


What is the difference between ASSERT and VERIFY?

2 Answers  


What is the base class for MFC Framework ?

4 Answers  


What is serialization ?which function is responsible for serializing data ?

5 Answers  






How we call a dialog in another dialog?

2 Answers  


what is the use of Mutex and critical section

2 Answers  


1)does Frame Thickness in MFC?

1 Answers   winfoware,


How to update windows title bar dynamically?

7 Answers   HCL,


If application hangs while SendMessage is waiting for the result, how you handle it?

2 Answers  


I want recent paper pattern for HP company?

0 Answers   HP,


Hi All, i am new for VC++ SDK. i want to get the IP Address of all the External device connected with my local machine.please give the code Regards, Praveer

1 Answers   TCS, Tech Mahindra,


Categories