473,387 Members | 1,362 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Help System .chm linking problem

Hi,

I have a VB.NET 2003 application which includes a help system developed
externally into a .chm file which is linked to from the application.
There are 3 ways the application links to the help:

1) Via a menu which just executes the help system using Help.ShowHelp
with the specified URL for the introduction page
2) Via a keyboard shortcut that executes the help system using
Help.ShowHelp with the specified URL.
3) By having a HelpProvider control on a form with the necessary .chm
file referenced in it and having the URL set as the HelpKeyword and
Topic as the HelpNavigator.

Now all of this works fine some of the time. However we have discovered
that when the application is installed, sometimes it does not work. By
not work, I mean you press F1 or select from the menu and the cursor
changes to an hourglass briefly but nothing happens. We have discovered
that if you restart the application then that often, although not
always fixes it. It seems quite random as to when it fails to work but
whenever it does fail, it will definately never work for that execution
session.

The .chm file is stored in the same folder as the application and
therefore I just reference the filename directly with no directory
qualifications.

I have never seen the problem occur on my development system by the
way, only on installed systems and even then only sporadically.

Any ideas as to what might be causing this annoying intermittent
problem?

Regards,

Mark.

Oct 16 '06 #1
2 1408
The .chm file is stored in the same folder as the application and
therefore I just reference the filename directly with no directory
qualifications.
It is not guaranteed that Windows will look for CHM files in application
folder. It looks for them in common help folders. You should always set
the full help path at application start. In my experience, it never
worked on other computer when I didn't do that.
--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Oct 16 '06 #2
Peter Macej wrote:
It is not guaranteed that Windows will look for CHM files in application
folder. It looks for them in common help folders. You should always set
the full help path at application start. In my experience, it never
worked on other computer when I didn't do that.
By this do you mean that I should always define the path for the help
file explicitly, wherever it is referenced? I can do that of course
although I do have quite a lot of forms and I am going to need to
ensure that they are always set programatically when created as you
cannot set the HelpProvider property to be anything other than
hard-coded and my users can install the software where they like.

So, have I understood you correctly? I need to have a full path defined
every time?

Regards,

Mark.

Oct 18 '06 #3

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

Similar topics

0
by: abcd | last post by:
kutthaense Secretary Djetvedehald H. Rumsfeld legai predicted eventual vicmadhlary in Iraq mariyu Afghmadhlaistmadhla, kaani jetvedehly after "a ljetvedehg, hard slog," mariyu vede legai pressed...
4
by: Gary Hughes | last post by:
Hi all, sometime I posted a problem in here where I was getting the following error from the linker in VS C++ 2003. Linking... GCClass.obj : error LNK2022: metadata operation failed (80131188)...
2
by: | last post by:
Help! I'm new to c++, and am breaking my teeth on MS Visual C++ (bundled within Visual Studio .NET 2003). Am trying to link simple c++ code to fortran dlls created in Compaq Visual Fortran (v6.1)....
3
by: Alex Shturm | last post by:
Hi, I am trying to activate incremental link using VC7 (.NET 2003) on a pretty big project (executable size is more than 100Mb, and it gets linked from several dozen of libraries and object...
6
by: dlgproc | last post by:
Hi I’m trying to write a C++ class library in Visual Studio 7.1 .NET using managed extensions that calls code in an unmanaged static library. Functions in the static library have parameters...
7
by: none | last post by:
Hello, I was reading some of the FAQ last night and got to this one, http://c-faq.com/ptrs/genericpp.html . Now i'd just like to make sure i'm understanding it correctly, so please correct me where...
13
by: rdemyan via AccessMonster.com | last post by:
My front-end code manually links to the backend file. I was wondering what stops Access from linking to the system tables in the backend file. Is it just by virtue that they are hidden? This...
14
by: =?Utf-8?B?Sm9hY2hpbQ==?= | last post by:
I have seen the following function to convert from a System::String^ to a const wchar_t*. I would like to get a LPCTSTR and AFAIK LPCTSTR is equal to const wchar_t*. Then it should all work right?...
3
by: Robert Dufour | last post by:
I am trying to localize a very simple web site (english and french) I have a master page and one content page for now. On the master page I have placed a Localize control On the content page I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.