home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / mac / programm / 14328 < prev    next >
Encoding:
Internet Message Format  |  1992-08-21  |  1.5 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!unixhub!moose.slac.stanford.edu!user
  2. From: John_Shepardson.esh@qmail.slac.stanford.edu (John Shepardson)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: HELP: how can I ...
  5. Message-ID: <John_Shepardson.esh-210892100401@moose.slac.stanford.edu>
  6. Date: 21 Aug 92 17:01:47 GMT
  7. References: <BtBy0p.7Gt@usenet.ucs.indiana.edu>
  8. Sender: news@unixhub.SLAC.Stanford.EDU
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: slac
  11. Lines: 28
  12. Nntp-Posting-Host: moose.slac.stanford.edu
  13.  
  14.  
  15. > 1. How can I find out what kind of video card is installed through my
  16. >    program?
  17. > 2. How can an application get the document name/path through which the
  18. >    application is invoked?
  19. > THANKS in advance!!
  20.  
  21. You should get a good sized hard disk and pump all the source code you can
  22. find onto it including all the source from apple's developer CD's and
  23. Mactutor.
  24. Then all you would have to do is search through the files using a text
  25. finder like On Location.  This makes a personal library that is incredibly
  26. valuable!
  27.  
  28. You'll have to use the slotmanager to get the video board name and very
  29. specific info, although finding out the depth's supported could be as easy
  30. as calling HasDepth using the gdevices found in the DeviceList.
  31.  
  32. source to return the pathname can be found in MacTutor #05
  33. (Dec85-Jan86):c:hfs source 2-1.  Also there is code in apples developer
  34. disks under Snippets: Parsefullpathname which does the reverse job.
  35.  
  36.  
  37. -------------------------------------------
  38. John_Shepardson.esh@qmail.slac.stanford.edu
  39.