Click here to Skip to main content
15,893,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone
I am facing some problem in
C++
CallWindowProc(oldWndProc, hWnd, nMsg, wParam, lParam)

where nMsg = 28
i didnt get which type of this message n why it occures whenever application lose focus..
Thanx in advance.. n mery X'mas n happy new year...
Posted
Updated 25-Dec-11 23:12pm
v2

A crash is often produced when your program attempts to access a protected memory location.

Run your program in the debugger and make it crash.
When it crashes, view the call stack and see what code is executing when it crashes.

Because MFC apps are inherently multi-threaded, the thread that crashes may not be your main thread. If this is the case, open the thread window in the debugger and find your main thread and see what code it was executing.
 
Share this answer
 
Comments
chandanadhikari 28-Dec-11 2:55am    
hi ,
JackDingler has shown you the way.Try to debug and when your application crashes it will point you to the line where some memory access violation is taking place, you might get some error code --do some googling with that error code.Also Google for this issue --just in case it might be a known bug for the MFC verion you are using.
28(decimal)corresponds to WM_ACTIVATEAPP
it is sent whenever your application's window is being activated or deactivated
 
Share this answer
 
Comments
shashankacharya 26-Dec-11 5:34am    
hey thanx for ur answer...
whenevr i clicked on task bar application get crashed... Can u tell me about it..??
Lactoferrin 27-Dec-11 21:45pm    
Does it crash when calling CallWindowProc?
maybe there is error in oldWndProc

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900