Calling Help File from Executable Project Type using Powerplant

Calling Help File from Executable Project Type using Powerplant

Post by Neel » Wed, 31 Aug 2005 23:12:20


Hi,
I am trying to call a help file (in Apple Help Viewer a
simple .html file ) from PPC Mac OS X Project Type is Executable.

Earlier I was able to call this file using following
code when project type was : Application package. since it is carbon
app i register my help book, and also made some changes in property
list file as follow and put help file folder under application package.


key "CFBundleHelpBookFolder" value string "MY Help Book"
key "CFBundleHelpBookName" value string "MY Help Book"

//the following code just open help viewer but does not show my help
file even though i did
//change in meta tag of the main html file ( in this case
"LinkPage.htm")
case cmd_Help:
{
CFStringRef bookname =CFSTR("MY Help");
CFStringRef path =
CFSTR(":LinkPage.htm");
OSStatus mystat =
AHGotoPage(bookname, path, 0);
break;
}

Now, I am wondering since it is Executable ( doesnt have package
folder ) so where should i keep my help file folder and how can i
call my help file(.html files) from outside of the application. The
same problem occure with my application icon also, it goes for toss
after i
change my project type from Application package to Executable. How can
solve this problem ?

Thanks in advance.