home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 13072 < prev    next >
Encoding:
Internet Message Format  |  1992-07-27  |  1.2 KB

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