home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!purdue!mentor.cc.purdue.edu!noose.ecn.purdue.edu!jonathan
- From: moyman@ecn.purdue.edu (Mike Moya)
- Newsgroups: comp.sys.mac.programmer
- Subject: PAP and LW IIf/g help
- Message-ID: <moyman-270792164715@jonathan.ecn.purdue.edu>
- Date: 27 Jul 92 22:01:26 GMT
- Sender: news@noose.ecn.purdue.edu (USENET news)
- Followup-To: comp.sys.mac.programmer
- Organization: Engineering Computer Network
- Lines: 23
-
- Any reason I can do the following. It won't work for me and I don't
- understand why (I tend to look at things a bit simplistically). Don't
- worry about error codes for this example:
-
- initlizia, etc...
- err = PAPOpen(&cno, LWtr, rflowq, &status, &ocomp));
- sprintf(chstr, "serverdict begin 0 exitserver\n (%%LocalTalk%%) <</L
- ocalTalkType (%s:LWtr)>> setdevparams\n", prname);
- err = PAPWrite(cno, chgstr, sizeof(chgstr), 1, &wcomp);
- PAPClose(cno);
-
- As you can see I am trying to start up a spooler by renameing/type the LW
- first off (and not having much luck)... The real code goes through without
- any errors in the PAP calls but the name and type of the LWIIf does not
- change. Any ideas? Any code floating around out there that shows an
- example?
- --moya
-
- --Mike Moya
- --Macintosh Systems and Networking
- --Engineering Computer Network
- --Purdue University
- --
-