CWinApp::WinHelp replaced by CWinApp::WinHelpInternal?

M

Milind Phadnis

Hi,

I have an application which was developed with Visual C++ 6.0 and MFC.
In the application, the CWinApp::WinHelp method was overridden to
support context sensitive help (F1 help). The application was recently
upgraded to Visual Studio .Net 2003. The help links no longer work.
The WinHelp method in my derived application class no longer gets
called, when the user presses F1 in the application as before. The
application instead looks for the app.hlp file where 'app' is the name
of the exe. I created a new SDI MFC test application in VS.Net and
added the WinHelp override to my application class. On running this
application through debugger, I noticed the same result, i.e. my
WinHelp method was never called.

I came across a reference in this group to the method
CWinApp::WinHelpInternal. I tried it and this method does indeed get
called. Was this a change made to the CWinApp class in the latest
version of MFC and is it documented somewhere? I could not find any
reference to it on the MSDN site or in the online docs. Should I
change WinHelp to WinHelpInternal in all my apps (I have several
apps/dlls exhibiting the same behavior)?

Thanks,
Milind
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top