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 serialization ?which function is responsible for serializing data ?

5 Answers  


what if we provide two message handler for same message ?

1 Answers  


Difference between Cclint DC & Cpaint Dc

6 Answers   E Logic,


Explain Doc/View architecture

6 Answers   Huawei,


Hi All, I have created one MFC Dialog Based application.now if i am running the application its working fine,instead of closing he application i minimized the application,if i run the application again,i am getting the Dialog. I want to prevent the calling of application multiple times. please give me the code and let me know in which method i need to make changes. Praveer

7 Answers   HP,






1)How to change the size of a button at run time ?

1 Answers  


Differ GetMessage, PostMessage & PeakMessage?

4 Answers   Symphony,


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

1 Answers  


1) Enable or disable a Cancel button at run time?

1 Answers   HCL,


What is the difference between the Encapsulation and Abstraction

25 Answers   HCL, Invensys, TCS, Wipro,


What function is called by a document class to notify views that the document has been changed?

2 Answers  


what message is sent to an application when the user presses the primary button?

0 Answers   University Exams,


Categories