🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.mac.programmer.help
Article #49

AppleHelp.h / Carbon Call from Classic

#49
From: ccorbell
Date: Wed, 07 Nov 2001 23:12
38 lines
2557 bytes
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
Technical Details
Message-ID: <3BE9BFD8.36D7A2C2@vernier.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 101ec9,446fa3c248a9833a,start
X-Google-Attributes: gid101ec9,public
X-Google-Thread: 10bcce,446fa3c248a9833a,start
X-Google-Attributes: gid10bcce,public
X-Google-ArrivalTime: 2001-11-07 15:14:56 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: ccorbell <ccorbell@vernier.com>
Newsgroups: comp.sys.mac.programmer.help,codewarrior.mac
Subject: AppleHelp.h / Carbon Call from Classic
Date: Wed, 07 Nov 2001 15:12:23 -0800
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <3BE9BFD8.36D7A2C2@vernier.com>
X-Mailer: Mozilla 4.77C-CCK-MCD {C-UDP; EBM-APPLE} (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Complaints-To: newsabuse@supernews.com
Lines: 38