473,484 Members | 1,687 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Overriding WinHelp is not working in .NET

Hi Friends,

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). After upgrading to Visual Studio .Net
2003, the help links are not working any longer. The overridden WinHelp
method in my CWinApp derived class no longer gets called when I press F1.

On some investigation within the framework code, I found that another
function CWinApp::WinHelpInternal gets called. If I just call this method
from my overridden WinHelp method then things work fine. Is 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.
Will the workaround I have done has any impact which I'm not aware of?

Thanks for your help.

Regards,
Devender...
Nov 17 '05 #1
1 1708
It's been years last time I used MFC. So, I am quite off from MFC case.

The WM_HELP window message is sent to the main window of the
application. If you can handle this message, you can either call your
method with proper parameters, or, display help from within the WM_HELP
handler. Besides, I guess MFC does this on your behalf - it handles
this message and calls WinHelpInternal method.

Ismail

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
4148
by: Ali Eghtebas | last post by:
Hi, I have 3 questions regarding the code below: 1) Why can't I trap the KEYDOWN while I can trap KEYUP? 2) Is it correct that I use Return True within the IF-Statement? (I've already read...
3
4777
by: news.microsoft.com | last post by:
Hi, It is possible to override a non virtual method with the "new" keyword So how is this different from specifying a method as virtual then providing the override keyword? Is there any...
2
3584
by: ESPNSTI | last post by:
Hi, I'm very new to C# and .Net, I've been working with it for about a month. My experience has been mainly with Delphi 5 (not .Net). What I'm looking for is for a shortcut way to override a...
17
2894
by: Bob Weiner | last post by:
What is the purpose of hiding intead of overriding a method? I have googled the question but haven't found anything that makes any sense of it. In the code below, the only difference is that...
0
2022
by: Milind Phadnis | last post by:
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...
4
7465
by: Brett | last post by:
I have recently purchased Visual C++ . Net compiler and i am trying to compile a project that i had working in Visual C++ 6.0. When I compile, I am receiving the warning: cl : Command line...
3
1517
by: Amin Sobati | last post by:
Hi, I have two classes. Class2 inhertis Class1: ----------------------------- Public Class Class1 Public Overridable Sub MySub() End Sub End Class Public Class Class2
2
3322
by: mayo | last post by:
I had a procedure that calls some executable files. When I call .exe files compiled in VB, there's no error but when I try to call the help file which is created in Winhelp 2000, i got an error...
2
2022
Sl1ver
by: Sl1ver | last post by:
Anyone know of free winhelp or similiar software that i can use within delphi software?
0
7079
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6949
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7137
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7194
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4527
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3038
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1355
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
587
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
234
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.