Die Datei "xxx.vcproj" der beiden Projekte öffnen und folgendes aus dem Help-Projekt
ins hilflose Projekt übertragen:
(ROT markierte Abschnitte müssen durch den Namen des Zielprogramms ersetzt werden !)
In der Sektion "<Filter Name="Header Files"..." wird dieses Stück gesucht:
<File
RelativePath=".\Resource.h">
</File>
Ersetzen durch dieses (im Prinzip eine Batch-Datei, die als XML-Attribut deklariert ist ;-).
">", "<" und "&" sind hier XML-Entities und stehen so auch in der vcproj-Datei ! Nur im HTML-Quelltext dieser Seite tauchen noch weitere auf ! ):
<File RelativePath=".\Resource.h">
<FileConfiguration Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
Description="Generating map file for help compiler..."
CommandLine="echo // Generated Help Map file. Used by YourApp.HHP. > "hlp\HTMLDefines.h"
echo. > "hlp\HTMLDefines.h"
echo // Commands (ID_* and IDM_*) >> "hlp\HTMLDefines.h"
makehm /h ID_,HID_,0x10000 IDM_,HIDM_,0x10000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Prompts (IDP_*) >> "hlp\HTMLDefines.h"
makehm /h IDP_,HIDP_,0x30000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Resources (IDR_*) >> "hlp\HTMLDefines.h"
makehm /h IDR_,HIDR_,0x20000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Dialogs (IDD_*) >> "hlp\HTMLDefines.h"
makehm /h IDD_,HIDD_,0x20000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Frame Controls (IDW_*) >> "hlp\HTMLDefines.h"
makehm /h /a afxhh.h IDW_,HIDW_,0x50000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
"
Outputs="hlp\HTMLDefines.h"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
Description="Generating map file for help compiler..."
CommandLine="echo // Generated Help Map file. Used by YourApp.HHP. > "hlp\HTMLDefines.h"
echo. > "hlp\HTMLDefines.h"
echo // Commands (ID_* and IDM_*) >> "hlp\HTMLDefines.h"
makehm /h ID_,HID_,0x10000 IDM_,HIDM_,0x10000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Prompts (IDP_*) >> "hlp\HTMLDefines.h"
makehm /h IDP_,HIDP_,0x30000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Resources (IDR_*) >> "hlp\HTMLDefines.h"
makehm /h IDR_,HIDR_,0x20000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Dialogs (IDD_*) >> "hlp\HTMLDefines.h"
makehm /h IDD_,HIDD_,0x20000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
echo. >> "hlp\HTMLDefines.h"
echo // Frame Controls (IDW_*) >> "hlp\HTMLDefines.h"
makehm /h /a afxhh.h IDW_,HIDW_,0x50000 "$(InputFileName)" >> "hlp\HTMLDefines.h"
"
Outputs="hlp\HTMLDefines.h"/>
</FileConfiguration>
</File>
In der Sektion "<Filter Name="Resource Files"..." wird folgendes eingefügt:
<File
RelativePath=".\hlp\Images\Bullet.gif">
</File>
Die beiden Filter-Sektionen "HTML Help Files" und "HTML Help Topics" einfügen.
<Filter
Name="HTML Help Files"
Filter="hhp;hhc;hhk;gif;jpg">
<File
RelativePath=".\hlp\YourApp.hhc">
</File>
<File
RelativePath=".\hlp\YourApp.hhk">
</File>
<File
RelativePath=".\hlp\YourApp.hhp">
<FileConfiguration
Name="Debug|Win32">
<Tool
Name="VCCustomBuildTool"
Description="Making help file..."
CommandLine="start /wait hhc "hlp\YourApp.hhp"
if not exist "hlp\YourApp.chm" goto :HelpError
copy "hlp\YourApp.chm" "$(OutDir)\YourApp.chm"
goto :HelpDone
:HelpError
echo hlp\YourApp.hhp(1) : error:Problem encountered creating help file
echo.
:HelpDone
echo.
"
AdditionalDependencies="hlp\HTMLDefines.h"
Outputs="$(OutDir)\$(ProjectName).chm"/>
</FileConfiguration>
<FileConfiguration
Name="Release|Win32">
<Tool
Name="VCCustomBuildTool"
Description="Making help file..."
CommandLine="start /wait hhc "hlp\YourApp.hhp"
if not exist "hlp\YourApp.chm" goto :HelpError
copy "hlp\YourApp.chm" "$(OutDir)\YourApp.chm"
goto :HelpDone
:HelpError
echo hlp\YourApp.hhp(1) : error:Problem encountered creating help file
echo.
:HelpDone
echo.
"
AdditionalDependencies="hlp\HTMLDefines.h"
Outputs="$(OutDir)\$(ProjectName).chm"/>
</FileConfiguration>
</File>
</Filter>
<Filter
Name="HTML Help Topics"
Filter="htm;html">
<File
RelativePath=".\hlp\afx_hidd_color.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_fileopen.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_filesave.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_find.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_font.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_newtypedlg.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_print.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_printdlg.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_printsetup.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidd_replace.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidp_default.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidw_dockbar_top.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidw_preview_bar.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidw_status_bar.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\afx_hidw_toolbar.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_app_about.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_app_exit.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_context_help.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_clear.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_clear_all.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_copy.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_cut.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_find.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_paste.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_redo.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_repeat.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_replace.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_edit_undo.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_close.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_mru_file1.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_new.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_open.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_page_setup.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_print.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_print_preview.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_print_setup.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_save.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_save_as.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_file_send_mail.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_help_index.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_help_using.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_ht_caption.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_ht_nowhere.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_next_pane.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_prev_pane.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_close.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_maximize.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_minimize.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_move.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_nextwindow.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_prevwindow.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_restore.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_size.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_sc_tasklist.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_view_ruler.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_view_status_bar.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_view_toolbar.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_all.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_arrange.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_cascade.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_new.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_split.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_tile.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_tile_horz.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hid_window_tile_vert.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\hidr_doc1type.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\main_index.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\menu_edit.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\menu_file.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\menu_help.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\menu_view.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\menu_window.htm"
DeploymentContent="TRUE">
</File>
<File
RelativePath=".\hlp\scrollbars.htm"
DeploymentContent="TRUE">
</File>
</Filter>