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

how to repaint when working with horizontal scroll bar

0 Answers  


how many types of classes are ther,what are that

7 Answers   L&T,


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

2 Answers   Siemens,


What is LoadLibrary function returns?

7 Answers  


What is #progma and where it is used?

5 Answers   L&T,






How do you change the properties for a tree view control that is part of the CTreeView class?

1 Answers  


1)How to change a text of a button as Dynamically?

1 Answers   HCL,


What is LPCTSTR? What does LP denote it?

4 Answers  


what is the difference between compiling and building?

1 Answers  


Why not virtual functions to handle messages?

5 Answers  


what is the use of CCmdTarget?

4 Answers   Siemens,


Have you ever used win32 APIs ?

4 Answers   Microsoft,


Categories