home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 12 / BBS in a box XII-1.iso / Files / Tele / M / ModemInit V1.1.sit / Modem Initializer 1.1 ƒ / Modem Initializer.P Notes < prev    next >
Encoding:
Text File  |  1991-04-18  |  3.8 KB  |  63 lines  |  [ttro/ttxt]

  1.         Modem Initializer ©1991 Mountainside Software  by Tim Damon
  2.                                                                             Programmer's Notes
  3.  
  4. Please read the comments in the source of the cdev.  They will tell you how to contact me if you need or want to.  All I can really say about programming a cdev is that it is much shorter than a full fledged application, but still as frustrating.  Hopefully this source code will kill some of the problems involved in writing a cdev.  If you really want to know more about writing cdev's and my source code doesn't help you enough, read Chapter 18 in Inside Macintosh Vol. V.  It should explain things a little better than the source code.  Another useful place to look is in MacTutor Vol. 3 No.10 or The Essential MacTutor Vol. 3.  The article 'CDEV Control Panel Files Revisited' by
  5. Steven C. Sheets is very good.  The last source (and maybe the best) is your friendly neighborhood Macintosh programmer that has already written a cdev.  My friendly neighborhood Macintosh programmer is Ken Beutel.  His help has been invaluable to me in this and other projects I am working on.  THANKS Ken!
  6.  
  7. Now, with all of that out of the way,  two things about 'Modem Initializer' that you as a programmer need to know are how to build the projects and on what machines it will work.
  8.  
  9. 1st, since it is the easiest, is that 'Modem Initializer' will work on a Mac Plus and up.  I have run it under System 7.0ß4 and only ran across one quirk - the command-s key doesn't work.  If this is no big problem for you, why worry?  Otherwise maybe you can figure out how to fix it and tell me.
  10.  
  11. 2nd.  If the project files are missing or are incompatible with your version of Pascal, the files you will need in the project are as follows.
  12.  
  13. Modem CDev:
  14. ===========
  15. serial.p                                {For the serial command interface}
  16. Modem CDev.pas        {The actual cdev source}
  17. DRVRRuntime.lib    {The library to support Mac toolbox for drivers}
  18. Interface.lib                {The library of interfaces for the Mac toolbox}
  19.  
  20. Project Type:    Code Resource
  21. ===========
  22. File information-
  23. Type: cdev                                                {The type of file being produced}
  24. Creator: METD                                    {The creator type}
  25. Bundle Bit: Set                                 {Bundle bit set so it will have an icon}
  26. Resource information-
  27. Type: cdev                                                {Make a cdev resource}
  28. Name: Modem Initializer     {Give it this name}
  29. Attributes: 00                                    {Not purgeable or anything else}
  30. ID: -4064                                                    {The ID of the resource  MUST BE -4064}
  31.  
  32. Use the resource file 'Modem CDev.rsrc'
  33.  
  34. For the INIT portion of the completed file you will need the following files in your project.
  35.  
  36. Modem Init:
  37. ==========
  38. serial.p                                {For the serial command interface}
  39. Modem Init.pas        {The actual INIT source}
  40. DRVRRuntime.lib    {The library to support Mac toolbox for drivers}
  41. Interface.lib                {The library of interfaces for the Mac toolbox}
  42. ShowInitIcon.lib    {The library with the code to show an INIT's icon at startup}
  43.  
  44. Project Type:    Code Resource
  45. ===========
  46. File information-
  47. Type: INIT                                                {The type of file being produced}
  48. Creator: METD                                    {The creator type}
  49. Bundle Bit: Set                                 {Bundle bit set so it will have an icon - This doesn't really matter}
  50. Resource information-
  51. Type: INIT                                                {Make a cdev resource}
  52. Name: Modem Initializer     {Give it this name}
  53. Attributes: 00                                    {Not purgeable or anything else}
  54. ID: -4064                                                    {The ID of the resource  MUST BE -4064}
  55.  
  56. Do NOT use a resource file in the INIT project.
  57.  
  58. After building both projects into their respective code resources and files,  open the INIT and the cdev files with ResEdit and copy the INIT resource into the cdev.  Under the file menu, get the info box for the cdev file and make sure the checkbox titled 'No Inits' is not set.  save the changes to the cdev file and copy it into your system folder.  Easy 'nuff? 
  59.  
  60. Thanks for the interest and have fun!
  61. -->Tim Damon
  62.  
  63. You're still reading?  Incredible.