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

General purpose classes in MFC

1 Answers   TCS,


1)why we cant create more than one instance of the class Derived from CWinApp

5 Answers   Alstom,


1)At run-time, you can change the icon by calling the LoadIcon() function?

2 Answers  


If i derive a new class from CObject what are the basic features my derived wil get ?

4 Answers   Microsoft,


how do u identify RTTI in vc++

4 Answers   Siemens,






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

5 Answers  


1)set the Title for The File DialogBox, in MFC?

1 Answers  


What is the base class for MFC

3 Answers   HCL,


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


I have 2 threads. One thread prints odd numbers and the second thread prints even numbers. Now, I have to execute the threads alternatively so that i can output 1,2,3,4,5,6,..... write code for this?

1 Answers  


What are the differences between MFC Exception macros and C++ exception keywords?

2 Answers  


1)how to Display the File Dialog Box, in MFC ?

1 Answers  


Categories