[Date Prev][Date Next] [Thread Prev][Thread Next]
[Date Index] [Thread Index] [New search]

FDK: Launching Help File



Hello Framers,

I am trying to launch a Winhelp file from one of my plugins. I have the
following code that responds to a menu command:

s1 = F_StrCopyString("message system winhelp.exe ");
clientDir = F_ApiClientDir();
s1 = F_Realloc(s1, F_StrLen(s1)+F_StrLen(clientDir)+1, NO_DSE);
F_StrCat(s1, clientDir);
s2 = F_StrCopyString("\x5cTableCleaner.hlp");
s1 = F_Realloc(s1, F_StrLen(s1)+F_StrLen(s2)+1, NO_DSE);
F_StrCat(s1, s2);
F_ApiHypertextCommand(0, s1);
F_Free(clientDir);
F_Free(s1);
F_Free(s2);
break;

I am using a hypertext command to launch Winhelp and pass the location of
the .hlp file. It works on Win95/98 but not on NT. On NT, Winhelp launches
but I get a message, "Can't open help file." If I double-click on the .hlp
file, it opens fine.

Rick Quatro
Carmen Publishing
716 659-8267
rick@frameexpert.com
http://www.frameexpert.com


** To unsubscribe, send a message to majordomo@omsys.com **
** with "unsubscribe framers" (no quotes) in the body.   **