mfc >> Help Problems

by Todd L. Peters » Mon, 26 Apr 2004 00:52:23 GMT

I had an MFC application without help, and followed the msdn instructions:
Adding HTMLHelp Context Sensitive Help to an Existing MFC Application.

However, I do not follow the final instruction:

Examine the .vcproj file (use Notepad) of the project that was created to
use context-sensitive help in HTMLHelp format and notice the custom build
steps used to create the help file (.chm file) when the project is built. Do
a search for VCCustomBuildTool in the .vcproj file to locate these custom
build steps. Copy those same custom build steps into your project.

This does not seem to be an issue, since I can create the chm file using
HTML Help Workshop. However, when I run my application, and click on "Help
Topics", get a message box saying: "Failed to launch Help."

Can anyone give me some ideas as to what might be the issue?

Todd L. Peters

mfc >> Help Problems

by PD.Lees » Mon, 26 Apr 2004 17:41:07 GMT


Here are a few resources that may help you to fix this.

"HTML Help MFC Sample"

"Connecting HTML Help to C++/MFC Programs" #ConnectHelp

"Starting Out with HtmlHelp"

Pete (Microsoft Help MVP)

Similar Threads

1. Context sensitive help : Problem calling Help.ShowHelp

2. HELP Problem serializing a structure


   I am having a problem trying to serialize this simple structure, I use it 
in a collection class that derives from CollectionBase but I noticed that at 
least for now the serialization exception ocurrs when i try to serialize 
this structure (see below). The idea is that it would be serialized to:

          < Param type="..." method="Get" required="true">something</Param>

I use the following to serialize:

        WizarParameter wpar = new WizardParameter(typeof(int), 
WizardParameterMethod.Get, true, "something");
        StringWriter sw = new StringWriter();
        XmlSerializer ser = new XmlSerializer(typeof(WizardParameter));
        ser.Serialize(sw, wpar);

public struct WizardParameter


/// The system type contained by this parameter
public System.Type Type;

/// The method that should be used to pass this paramete
public WizardParameterMethod Method;    /// enumeration

/// Whether the parameter is required or optional

public bool IsRequired;

public string Key;

public WizardParameter(Type type, WizardParameterMethod method, bool 
required, string key)


this.Type = type;

this.Method = method;

this.IsRequired = required;

this.Key = key;



3. Help -- Problem with redrawing UserControl - CSharp/C#

4. Help - Problem with 2 combo boxes populated from same data


I have a form with two comboboxes that I want to be populated with the
same values from a table (i.e. both comboboxes have the same
table/column as their datasource and display member).

The selections made from these comboboses are to be saved in two
different columns in another table.

For example, the possible selections could be from the "Description"
column of table a but the selection made from combobox1 would be bound
to the id1 column of table b and the selection made from combobox2
would be bound to the id2 column of table b.

The problem I am having is that any selection made in one combobox is
immediately reflected in the second one. They are staying synchronized
so they both show the same selection.

How can I achieve my desired results?

I thought that by each combobox control having a different
selectedvalue or valuemember property value they would behave

Any help will be greatly appreciated,


5. Context-sensitive help problem

6. Help: Problem to link C++ program with ld

I wrote a small C++ code

int main()
		int a = 1;
		if ( a != 1) throw "a != 1";
	return 1;

I can compile and link it with gxx
	gxx main.cpp

but if I link it with ld, 
	ld -lc -lstdcx -lsupcxx -lgcc main.o -o main.bin

I got a lot of "undefined reference":
	D:\DJGPP\BIN/ld.exe: warning: cannot find entry symbol start;
defaulting to 000018d0
	main.o(.text+0x37):main.cpp: undefined reference to
	main.o(.text+0x4a):main.cpp: undefined reference to `typeinfo for
char const*'
	main.o(.text+0x50):main.cpp: undefined reference to `__cxa_throw'
	main.o(.text+0x59):main.cpp: undefined reference to
	main.o(.text+0x61):main.cpp: undefined reference to
	main.o(.eh_frame+0x12):main.cpp: undefined reference to
	make.exe: *** [main.bin] Error 1

Does anybody have any suggestion for me ?

best regards

Dr. Xiangdong Wang (CTO)
Charismathics GmbH
47 sendlinger st
munich, germany 80331
Tel. +49 89 30906720
Fax. +49 89 30906729
Mobile: +49 177 4453742

7. Context-sensitive help problem

8. HELP, problem: could not initialize Release on target PC


I have build an Visual C++ application using Visual C++.NET standard on a
Windows XP Proffesional OS.

In my mainDlg.cpp document I use following: