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  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  VC++  >>  Win32API
 
 


 

 
 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
write About send message and post message
 Question Submitted By :: Tribhuvan Sharma
I also faced this Question!!     Rank Answer Posted By  
 
  Re: write About send message and post message
Answer
# 1
SendMessage is a blocking call.  ie., when a SendMessage() 
API is called from an application, the lines written after 
this API call cannot be executed until the message is 
processed and returned by the window procedure.

Whereas PostMessage() just posts the message into the 
windows corresponding message queue and returns immediately 
irrespective of the message is processed or not.
 
Is This Answer Correct ?    2 Yes 0 No
Karthikeyan
 
  Re: write About send message and post message
Answer
# 2
SendMessage is calling window proc and waiting for reply. 
where are PostMessage api is sending message in message 
queue and will not wait. Then message will be in Message 
queue till it will not be proceded by window proc.

In sort SendMessage waits till processing completion where 
as PostMessage does not wait.
 
Is This Answer Correct ?    1 Yes 0 No
Shah Chaitanya
 
 
 
  Re: write About send message and post message
Answer
# 3
Both are Win32 API members.

SendMessage(...) its NonQueued Messages. 


PostMessage(...) its Queued Messages.

SendMessage(...) Meassages can also be placed in a message 
queue by calling PostMessage(...).
 
Is This Answer Correct ?    0 Yes 0 No
Cheruku Raghu
 
  Re: write About send message and post message
Answer
# 4
send message doesn't follows message loop route.
while post massage follows.

examples of send message:WM_QUIT
examples of post message :WM_CLOSE,WM_COMMAND,...
 
Is This Answer Correct ?    0 Yes 0 No
Pooja
 

 
 
 
Other Win32API Interview Questions
 
  Question Asked @ Answers
 
Message to limit the size of window  3
Function entry for DLL in win3.1  2
write About send message and post message  4
In win32 application if defining a variable of CString then it gives the error "CString:Undeclared identifier" how to solve the problem? What headerfile need to include??  1
what is the difference between MFC and Win32 Microsoft2
System call executable binary file into a process  2
What is Win32? Wipro5
what are the design patterns of an MFC application SunSoft-Technologies1
what API used to hide window  1
what is the function to repaint a window immediately?  2
what Message displayed when a window is destroyed  3
How to load Bitmap at Dialogbakground in an MFC application? SunSoft-Technologies1
win 3.1 supports which type of multi tasking?  2
In Win32 application can we use CString datatype?  2
What are the COM components SunSoft-Technologies1
how to Initialize contents of a dialog?  2
About GDI object?  2
 
For more Win32API Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

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