Einzelnen Beitrag anzeigen

Michaell

Registriert seit: 17. Aug 2015
Ort: Bayern
47 Beiträge
 
Turbo C++
 
#6

AW: CHM-Hilfe meines Programms ist 'nicht erreichbar'.

  Alt 12. Mär 2018, 11:29
Ich habe nun doch noch eine Lösung gefunden:
Code:
// *************************************************************************************************
// parameter 'helpFileChapter':
//    Do a right mouse click on the displayed CHM file and select the item 'Properties'.
//    Behind 'Address:' there is for example this displayed:
//       mk:@MSITStore:D:\Repositories\...\Help.chm::/Introduction.htm
//    at the end of the address it the required *.htm file information.
// *************************************************************************************************
void CCommand::Exe1ShowDedicatedHelp(char helpFileChapter[200])
{
   char helpFilePath[MAXPATHLENGTH], commandOption[MAXPATHLENGTH * 2];

   // build the help file path
   sprintf(helpFilePath, "%s%sHelp.chm", STARTDIR, "Help\\");
   // build the 'hh.exe' command option
   sprintf (commandOption, " %s::/%s", helpFilePath, helpFileChapter);
   // call the help with a dedicated help file chapter
   do_spawnvp(P_NOWAIT, "hh.exe", commandOption);
}
  Mit Zitat antworten Zitat