[comp.sys.mac.programmer] ADSP example in DEVELOP

joel@neon.Stanford.EDU (Joel R Tornatore) (04/30/91)

I have tried to run the ADSP example program in
supplied with the latest issue of DEVELOP (Thank
you, by the way, for sending it to me from Apple)
but am having a problem.

Each time I run the application, a dialog with
the following message appears, and the application
quits:

	LACS requires phase 2 Appletalk software,
	which is standard in system 6.0.
	and later.

I am running System 6.0.7 with Finder 6.1.7 on a
Mac II. I have also tried using 6.0.5 on my machine,
as well as other machines (SE/30, IIci). I've cancelled
all my inits, and run under uni-finder. Nothing seems
to work. I also have the ADSP system document in my
system folder.

The line of code that fails is this one:
	if OpenDriver('.DSP',gADSP) <> noErr then
	...

The code is written in MacApp/Pascal, to which I do not have
access, so I cannot change anything. Does anyone know what's
up? Have you run this program? I'd like to use ADSP in a
C application that I am writing, but I want to test it with
this first.

Any help will of course be greatly appreciated.

joel tornatore
joel@neon.stanford.edu

wiechman@athos.rutgers.edu (NightMeower) (05/01/91)

In order to get the application to work, you must be running AppleTalk
driver 52 or better.  My guess is that you are running version 49.  If
you have MacEnvy it will tell you your current driver.

Now suppose you don't have the correct version.  How do you get it?
If you have a beta of System 7.0 you will get the new driver when you
install.  But you may not be a beta site.  Install the ethertalk
driver and you will automatically be updated.  A copy of this is on
the Developer CD and may be ftp'able from apple.com.


Kevin
-- 
===========================================================================
Kevin S. Wiechmann			arpa:  wiechman@cs.rutgers.edu

             This is only a test... for the next sixty seconds...

MacUserLabs@cup.portal.com (Stephan - Somogyi) (05/01/91)

joel@neon.Stanford.EDU (Joel R Tornatore)writes:
 
>Each time I run the application, a dialog with the following message
>appears [Dialog complains about lack of Phase 2-ness]
 
If memory serves, the sample app in question uses some of the cooler
newer NBP stuff. These calls needs AppleTalk 53 or later. The easiest
way to install this version is to install a Phase 2 Ethernet driver,
even if you don't have an Enet card.
 
The slightly more complicated method involves using ResEdit to grab
INIT 18 (whose resource name is "INIT 18" - thanks for the reminder,
guys :-) ) out of the System file on an Enet installer disk and
putting it into your System file. Henceforth any AppleTalk file found
in the System Folder will be loaded at startup. Get AppleTalk 53.0 (or
later) and drop it into your System folder. Voila.
 
System 7 has AppleTalk 56 built-in, so all this is not a worry after
you switch.
 
Stephan
______________________________________________________________________
Stephan Somogyi                          No. No. No. I'm NOT with MIS.
MacUser