[comp.sys.mac.programmer] AppleTalk Problems

rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) (10/25/88)

    Why would one be getting an OsErr result of -192 for the NBP AppleTalk
calls? Since this error code looks like ResNotFound, how do you get
the corrent resources loaded?

    Rob Johnston.

singer@endor.harvard.edu (Rich Siegel) (10/25/88)

In article <IXMwL4y00Uw94AtVN3@andrew.cmu.edu> rj0z+@andrew.cmu.edu (Robert George Johnston, Jr.) writes:
>
>    Why would one be getting an OsErr result of -192 for the NBP AppleTalk
>calls? Since this error code looks like ResNotFound, how do you get
>the corrent resources loaded?
>

	Supplied with the Lightspeed Pascal distribution is a file called
ATalk/ABPackage; this file has an 'atpl' resource in it. This resource should
go into your project's resource file.

		--Rich




Rich Siegel
Staff Software Developer
THINK Technologies Division, Symantec Corp.
Internet: singer@endor.harvard.edu
UUCP: ..harvard!endor!singer
Phone: (617) 275-4800 x305

Any opinions stated in this article do not necessarily reflect the views
or policies of Symantec Corporation or its employees.

bob@eecs.nwu.edu (Bob Hablutzel) (10/25/88)

>     Why would one be getting an OsErr result of -192 for the NBP AppleTalk
> calls? Since this error code looks like ResNotFound, how do you get
> the corrent resources loaded?

Sounds like you're using the old style AppleTalk routines. These routines
look for a resource of type 'atpl', a resource that contains all the
glue code to the high level routines. See Tech Note 121 for more information.

It would be a good idea to move to the new style AppleTalk routines if at
all possible. Apple moved away from the old style routines because of
problems with compatability, near as I can figure. (New routines have
names that start with a P).

Bob Hablutzel		BOB@NUACC.ACNS.NWU.EDU