You can easily prepare Scribble to compile the new Help files from within the development environment, by performing the following two procedures.
To add Scribble.hpj to the project
The file now appears under Source Files in FileView.
To add the HLP directory to the project
When AppWizard adds context-sensitive Help support, it implements special build options for the application’s Help Project file. You can duplicate this functionality by specifying Custom Build settings for Scribble.hpj, Scribble.cnt and resource.h. Once you complete this step, you can build Scribble.hpj from within the development environment.
To specify custom build settings
The Project Settings dialog box opens.
You can simultaneously select Scribble.hpj in both the Debug and Release project build types by clicking the combo box located above the Settings For area and clicking All Configurations.
start /wait hcw /C /E /M "hlp\$(InputName).hpj"
if errorlevel 1 goto :Error
if not exist "hlp\$(InputName).cnt" goto :Error
if not exist "hlp\$(InputName).hlp" goto :Error
copy "hlp\$(InputName).hlp" $(OutDir)
goto :done
:Error
echo "hlp\$(InputName).hpj(1)" : error: Problem encountered creating help file
type "hlp\$(InputName).log"
:done
$(OutDir)\$(InputName).hlp
echo. >>"hlp\$(TargetName).hm"
echo // Commands (ID_* and IDM_*) >>"hlp\$(TargetName).hm"
makehm ID_,HID_,0x10000 IDM_,HIDM_,0x10000 resource.h >>"hlp\$(TargetName).hm"
echo. >>"hlp\$(TargetName).hm"
echo // Prompts (IDP_*) >>"hlp\$(TargetName).hm"
makehm IDP_,HIDP_,0x30000 resource.h >>"hlp\$(TargetName).hm"
echo. >>"hlp\$(TargetName).hm"
echo // Resources (IDR_*) >>"hlp\$(TargetName).hm"
makehm IDR_,HIDR_,0x20000 resource.h >>"hlp\$(TargetName).hm"
echo. >>"hlp\$(TargetName).hm"
echo // Dialogs (IDD_*) >>"hlp\$(TargetName).hm"
makehm IDD_,HIDD_,0x20000 resource.h >>"hlp\$(TargetName).hm"
echo. >>"hlp\$(TargetName).hm"
echo // Frame Controls (IDW_*) >>"hlp\$(TargetName).hm"
makehm IDW_,HIDW_,0x50000 resource.h >>"hlp\$(TargetName).hm"
hlp\$(TargetName).hm
copy "hlp\$(InputName).cnt" $(OutDir)
$(OutDir)\$(InputName).cnt
You can now compile Scribble.hlp from the development environment anytime you need to update the contents of the Help Project files.
To compile Scribble Help from within the development environment
You can also simply build Scribble.exe at this point to see Scribble running with full application Help support.
This is the topic you added to Scribble’s Help system by editing the .CNT and .HPJ files. You’ll see the custom Help that has been provided in Pen.rtf.
Help mode, invoked by pressing SHIFT+F1, is another way for users to access Scribble application Help topics.