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

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

2 Answers  


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

0 Answers   TCS,


What is thread & process?

15 Answers   Exaband,


how does conditionally close the Dialog Box ?

2 Answers   Infotech,


What four types of properties are supported by an ActiveX control?

1 Answers  






is there any class which is not derived from Cobject

11 Answers   Patni,


if i modified data in 1 view how does the other view knows

2 Answers   Siemens,


How to setup a timer?

3 Answers   IBM,


What is a message map, and what is the advantage of a message map over virtual functions?

1 Answers  


How many types of combo box are their

2 Answers   Aaditya Info Solutions, E Logic,


Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


How can update edit control data of an executing application from other application?

3 Answers   HP,


Categories