Access Key Problem with App converted from VC++ 6.0 to 2002

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a VC++ 6.0 app that I have converted to 2002. It is running fine except for a problem with using the access keys we have set up on some of the buttons. For instance, ALT+Q causes the Quit button to be clicked which fires the OnQuit() handler. But it asserts in _AfxFindSiteOrWnd() when the call to pWndDlg->GetControlContainer() returns NULL. I compared the Microsoft code in 6.0 and 2002 and I found the code had changed in _AfxGetNextMnem() which now calls _AfxFindSiteOrWnd()

Is there anything I can do to make this work

I would appreciate your replies

Thank you
BKD
 
I have a VC++ 6.0 app that I have converted to 2002. It is running fine except for a problem with using the access keys we have set up on some of the buttons. For instance, ALT+Q causes the Quit button to be clicked which fires the OnQuit() handler. But it asserts in _AfxFindSiteOrWnd() when the call to pWndDlg->GetControlContainer() returns NULL. I compared the Microsoft code in 6.0 and 2002 and I found the code had changed in _AfxGetNextMnem() which now calls _AfxFindSiteOrWnd().
Is there anything I can do to make this work?

I don't recall having any such problems rebuilding VC6 projects with
VS myself.

Do you have a means of reproducing the problem - by creating a VC6
project and then loading/building it with VS?

Dave
 
Back
Top