Hi,
I have two questions I hope someone can answer - either
answer will get me where I need to go but I'm curious about both.
The first is, in general, whether it's possible to call a
CarbonLib function from a pre-Carbon CFM app under 8.6+,
either directly or through some sort of shim library.
CW7 includes many examples for crossing the Mach-o/CFM call
boundary with a Carbon app but I've never seen an example
of crossing the pre-Carbon/Carbon boundary from a pre-Carbon
app known to be running in a Carbon-enabled OS version.
Can I call CarbonLib functions if I find CarbonLib present,
even if I didn't link against it?
The second question is, what's the easiest way to support Apple
Help Viewer online help from a pre-Carbon CFM app; the
AppleHelp.h functions aren't available. I toyed with sending
an AppleScript command to the help viewer but didn't like the
results. There are a couple examples in the SDK & Sample Code
of using some sort of Apple Guide voodoo but the examples
all focus on populating the help menu, which I'm not
concerned about - I just need to launch specific help
URL's in the help viewer in different contexts.
My app's Classic target is for MacOS 8.1 - 9; since we
need to support 8.1 CarbonLib isn't an option. I really
want to avoid separate executables for 8.1 & 8.6+ if
it's possible (there will already be a separate executable
for 10.x).
In pre-8.6 I use Internet Config to launch a
web browser to view html help files; from 8.6-9.x I need
to launch the Help Viewer but the only examples I've found
use the AppleHelp.h methods.
TIA for any help!
- Christopher