Click here to Skip to main content
16,009,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to monitor the value at a specific address say 0x003b9c Pin
tervalor12-Mar-05 19:45
tervalor12-Mar-05 19:45 
GeneralRe: How to monitor the value at a specific address say 0x003b9c Pin
humps12-Mar-05 20:11
humps12-Mar-05 20:11 
Questionhow to save complete web page on hard disk? Pin
arooj12-Mar-05 15:41
arooj12-Mar-05 15:41 
AnswerRe: how to save complete web page on hard disk? Pin
Mohsen Saad13-Mar-05 6:00
Mohsen Saad13-Mar-05 6:00 
GeneralMFC Grid Control Exception in Release Build Only! Pin
jarbus12-Mar-05 10:17
jarbus12-Mar-05 10:17 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends12-Mar-05 17:41
professionalPJ Arends12-Mar-05 17:41 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
jarbus13-Mar-05 9:02
jarbus13-Mar-05 9:02 
GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends13-Mar-05 10:58
professionalPJ Arends13-Mar-05 10:58 
jarbus wrote:
ON_NOTIFY(NM_CLICK, IDC_CUSTOM1, OnGridClick)

jarbus wrote:
void CMyView::OnGridClick()

jarbus wrote:
OnGridclick is fully executed AND THEN the following error comes up

jarbus wrote:
Unhandled exception in MyProgram.exe 0xC0000005:Access Violation

As I suspected, your instruction pointer is getting messed up when your OnGridClick() message handler returns. What you have to do is add the proper parameters that are expected to be there when you handle a WM_NOTIFY message.
void CMyView::OnGridClick(NMHDR *, LRESULT *)
It has to do with the way the IP and parameters are pushed onto the stack when the function starts, and then popped off the stack when the function ends. If you do not declare the proper parameters you end up with a mismatch and the IP gets screwed as a result.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralRe: MFC Grid Control Exception in Release Build Only! Pin
PJ Arends13-Mar-05 11:10
professionalPJ Arends13-Mar-05 11:10 
GeneralC++ Dll Pin
Daniel Kanev12-Mar-05 9:53
Daniel Kanev12-Mar-05 9:53 
GeneralRe: C++ Dll Pin
YaronNir12-Mar-05 11:25
YaronNir12-Mar-05 11:25 
GeneralRe: C++ Dll Pin
John R. Shaw12-Mar-05 13:14
John R. Shaw12-Mar-05 13:14 
GeneralInheritance & Derived Classes Pin
tnvols12-Mar-05 9:48
tnvols12-Mar-05 9:48 
GeneralRe: Inheritance & Derived Classes Pin
tnvols12-Mar-05 13:01
tnvols12-Mar-05 13:01 
Questionhow to communicate with a web site Pin
Mohsen Saad12-Mar-05 6:43
Mohsen Saad12-Mar-05 6:43 
AnswerRe: how to communicate with a web site Pin
Ravi Bhavnani12-Mar-05 10:14
professionalRavi Bhavnani12-Mar-05 10:14 
GeneralWin32 API and FindWindow Pin
3Dizard12-Mar-05 5:19
3Dizard12-Mar-05 5:19 
GeneralRe: Win32 API and FindWindow Pin
Mohsen Saad13-Mar-05 6:05
Mohsen Saad13-Mar-05 6:05 
GeneralRe: Win32 API and FindWindow Pin
David Crow14-Mar-05 5:59
David Crow14-Mar-05 5:59 
Generallinking of vc++ program to another vc++ prog Pin
mhay_nineteen@yahoo.com12-Mar-05 0:51
sussmhay_nineteen@yahoo.com12-Mar-05 0:51 
GeneralRe: linking of vc++ program to another vc++ prog Pin
deldeep12-Mar-05 1:17
deldeep12-Mar-05 1:17 
Questiondll problem? Pin
murali_utr11-Mar-05 23:26
murali_utr11-Mar-05 23:26 
AnswerRe: dll problem? Pin
YaronNir12-Mar-05 11:28
YaronNir12-Mar-05 11:28 
GeneralPlease help, i got problem with memory allocation Pin
Rassul Yunussov11-Mar-05 22:58
Rassul Yunussov11-Mar-05 22:58 
GeneralWorking with MS Word Pin
Zero_divide_111-Mar-05 20:44
Zero_divide_111-Mar-05 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.