ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage   interview questions urls   External Links  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Programming Languages  >>  VC++  >>  MFC
 
 


 

 
 MFC interview questions  MFC Interview Questions
 ATL interview questions  ATL Interview Questions
 COM DCOM interview questions  COM DCOM Interview Questions
 Win32API interview questions  Win32API Interview Questions
 ActiveX interview questions  ActiveX Interview Questions
 VC++ AllOther interview questions  VC++ AllOther Interview Questions
Question
I can i set size of integer variable should be fixed for 
different operating systems(Ex i want integer size is 
2bytes in OS)
 Question Submitted By :: K.ramaswamy
I also faced this Question!!     Rank Answer Posted By  
 
  Re: I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
Answer
# 1
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 ?    0 Yes 1 No
Vijay Visana
 
  Re: I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS)
Answer
# 2
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 ?    0 Yes 0 No
Wizards
 
 
 

 
 
 
Other MFC Interview Questions
 
  Question Asked @ Answers
 
Which CPrintInfo member variable must be set for multiple page printouts?  1
1)why we cant create more than one instance of the class Derived from CWinApp  1
What is the use of OninitDialog ? HCL7
What?s the difference between Modal and Modeless Dialog? Usl-India5
What is a message map, and what is the advantage of a message map over virtual functions?  1
what if we provide two message handler for same message ?  1
what is the size of a process E-Logic2
What is the difference between Synchronous sockets and asynchronous sockets?  2
if both base and derived class have the constructors if i create an object for derive class which class constructor is executed first Siemens5
What is LoadLibrary function returns?  6
How WM_PAINT message gets called in MFC,please explain it . a)Who calls the WM_PAINT message? b)When it gets called? c)how it comes to message queue? Please Explain it  2
What is the difference between hinsrtance and hprevinstance in WinMain function?  3
What are the types of button controls?  8
is it possible to display a window .without using windowclass E-Logic1
what are the feauters of CObject Siemens2
What is the use of CObject::Dump function ?  4
How to create a Modeless Dialog?  4
If i derive a new class from CObject what are the basic features my derived wil get ? Microsoft3
What is the difference between the SDI and MDI Invensys2
I can i set size of integer variable should be fixed for different operating systems(Ex i want integer size is 2bytes in OS) Invensys2
 
For more MFC Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com