home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9140 < prev    next >
Encoding:
Text File  |  1992-09-08  |  8.8 KB  |  199 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!ncoast!brown
  3. From: brown@NCoast.ORG (Stan Brown)
  4. Subject: comp.os.msdos.programmer FAQ part 1 of 4 (REPOST)
  5. Expires: Tue, 22 Sep 1992 23:18:49 GMT
  6. Organization: Oak Road Systems, Cleveland Ohio USA
  7. Date: Mon, 7 Sep 1992 23:18:49 GMT
  8. Message-ID: <1992Sep07.msdos.faq.1bis@NCoast.ORG>
  9. Followup-To: poster
  10. Keywords: read-before-posting-questions
  11. References: none
  12. Lines: 185
  13.  
  14. Last-modified: 22 August 1992
  15.  
  16. To celebrate the new school term I'm posting the FAQ an extra time.
  17. Normal posting schedule is between about the 20th and 25th of every
  18. month.  (Opinions as to whether the FAQ should be posted twice every
  19. month are hereby solicited--by email, please.)
  20.  
  21.  
  22. Welcome!
  23.  
  24. This is the monthly FAQ list (Frequently Asked Questions list) for the
  25. newsgroup comp.os.msdos.programmer.  It's intended to reduce the noise
  26. level in comp.os.msdos.programmer that results from the repetition of
  27. FAQs, correct answers, wrong answers, corrections to the wrong answers,
  28. corrections to the corrections, debate, etc.
  29.  
  30. Because it's quite long, I've broken this list into four parts, of which
  31. you're now reading part 1.  (If you have last month's version of this
  32. FAQ list, you may want to look at the diffs rather than reread three
  33. long articles.  Look for "comp.os.msdos.programmer FAQ diff" in the
  34. Subject lines.)  I've posted the four parts of this article, and the
  35. four parts of diffs, as single threads so that most newsreaders will
  36. let you extract either of them in one operation.
  37.  
  38. This list should serve as a repository of the canonical "best" answers.
  39. So if you know a better answer or even a slight change that improves an
  40. answer, please tell me!  (Use email, please.  Traffic in this group is
  41. high, and I may miss a relevant posted article.)  If the posting date is
  42. more than six weeks in the past, see instructions in the last part of
  43. this list for how to get an updated copy.
  44.  
  45.                       Stan Brown, Oak Road Systems, Cleveland, Ohio, USA
  46.                                                         brown@ncoast.org
  47.  
  48. Search tips
  49. ===========
  50.     To search for specific topics:  See the list of questions in the
  51. Contents section (immediately below) to find which article (part 2, 3,
  52. or 4) list you need.  In that part, then search for that question
  53. number.  For example, while you're reading part 2 of this list in trn,
  54. the command "gQ203" goes to Q203.
  55.     To skip one topic and go to the next:  Search for "Q" starting in
  56. column 1.  In trn and similar newsreaders, the command "g^Q" does that.
  57.     If your newsreader doesn't support searches, you can extract these
  58. articles to a file and use your favorite editor's search commands.
  59.  
  60.  
  61. Contents--part 2 of 4
  62. =====================
  63. section 1. General questions
  64.     101. Why won't my code work?
  65.     102. What is this newsgroup about?
  66.     103. What's the difference from comp.sys.ibm.pc.programmer?
  67.     104. What other newsgroups should I know about?
  68. section 2. Compile and link
  69.     201. What the heck is "DGROUP > 64K"?
  70.     202. How do I fix "automatic data segment exceeds 64K" or "stack
  71.          plus data exceed 64K"?
  72.     203. Will Borland C code and Microsoft C code link together?
  73.     204. Why did my program bomb at run time with "floating point
  74.          formats not linked"?
  75.     205. Why did my program bomb with "floating point not loaded"?
  76.     206. How can I change the stack size in Borland's C compilers?
  77.     207. What's the difference between .COM and .EXE formats?
  78. section 3. Keyboard
  79.     301. How can I read a character without echoing it to the screen,
  80.          and without waiting for the user to press the Enter key?
  81.     302. How can I find out whether a character has been typed, without
  82.          waiting for one?
  83.     303. How can I disable Ctrl-C/Ctrl-Break and/or Ctrl-Alt-Del?
  84.     304. How can I disable the print screen function?
  85.     305. How can my program turn NumLock (CapsLock, ScrollLock) on/off?
  86.     306. How can I speed up the keyboard's auto-repeat?
  87.     307. What is the SysRq key for?
  88.     308. How can my program tell what kind of keyboard is on the system?
  89.     309. How can I tell if input or output has been redirected?
  90.  
  91.  
  92. Contents--part 3 of 4
  93. =====================
  94. section 4. Disks and files
  95.     401. What drive was the PC booted from?
  96.     402. Which real and virtual disk drives are valid?
  97.     403. How can I make my single floppy drive both a: and b:?
  98.     404. Why won't my C program open a file with a path?
  99.     405. How can I redirect printer output to a file?
  100.     406. What's the format of an .EXE header?
  101.     407. How can my program open more files than DOS's limit of 20?
  102. section 5. Serial ports (COM ports)
  103.     501. How do I set my machine up to use COM3 and COM4?
  104.     502. How do I find the I/O address of a COM port?
  105.     503. But aren't the COM ports always at I/O addresses 3F8, 2F8, 3E8,
  106.          and 2E8?
  107.     504. How do I configure a COM port and use it to transmit data?
  108. section 6. Other hardware questions and problems
  109.     601. Which 80x86 CPU is running my program?
  110.     602. How can a C program send control codes to my printer?
  111.     603. How can I redirect printer output to a file?
  112.     604. Which video adapter is installed?
  113.     605. How do I switch to 43- or 50-line mode?
  114.     606. How can I find the Microsoft mouse position and button status?
  115.     607. How can I access a specific address in the PC's memory?
  116.     608. How can I read or write my PC's CMOS memory?
  117. section 7. Other software questions and problems
  118.     701. How can a program reboot my PC?
  119.     702. How can I time events with finer resolution than the system
  120.          clock's 55 ms (about 18 ticks a second)?
  121.     703. How can I find the error level of the previous program?
  122.     704. How can a program set DOS environment variables?
  123.     705. How can I change the switch character to - from /?
  124.     706. Why does my interrupt function behave strangely?
  125.     707. How can I write a TSR (terminate-stay-resident) utility?
  126.     708. How can I write a device driver?
  127.     709. What can I use to manage versions of software?
  128.  
  129.  
  130. Contents--part 4 of 4
  131. =====================
  132. section A. Downloading
  133.     A01. What is garbo?  What is wustl?
  134.     A02. What are Simtel and "mirror sites"?  What good are they?
  135.     A03. Where do I find program <mumble>?
  136.     A04. How can I check Simtel or garbo before I post a request for a
  137.          program?
  138.     A05. How do I download and decode a program I found?
  139.     A06. Where is UUDECODE?
  140.     A07. Why do I get errors when extracting from a ZIP file I
  141.          downloaded?
  142. section B. Vendors and products
  143.     B01. How can I contact Borland?
  144.     B02. How can I contact Microsoft?
  145.     B03. What's the current version of PKZIP?
  146.     B04. What's in Microsoft C/C++ 7.0?
  147. section C. More information
  148.     C01. Are there any good on-line references for PC hardware
  149.          components?
  150.     C02. Are there any good on-line references for PC interrupts?
  151.     C03. What and where is "Ralf Brown's interrupt list"?
  152.     C04. Where can I find lex, yacc, and language grammars?
  153.     C05. What's the best book to learn programming?
  154.     C06. Where are FAQ lists archived?
  155.     C07. Where can I get the latest copy of this FAQ list?
  156.  
  157.  
  158. Legalistic stuff
  159. ================
  160. This article is not in the public domain, but it may be redistributed so
  161. long as this notice, and the information on obtaining the latest copy of
  162. this list, are retained.  The code fragments may be used freely; credit
  163. would be appreciated but is not required.
  164.  
  165.             Copyright (C) 1992  Stan Brown, Oak Road Systems
  166.  
  167. THERE IS NO WARRANTY ON THE CODE.  I have tested all the code included
  168. below, but your machine may not work the same as mine, and my testing
  169. may not be perfect.
  170.  
  171. The mention of particular books or programs must not be construed to
  172. reflect unfavorably on any that are not mentioned.
  173.  
  174.  
  175. Acknowledgements
  176. ================
  177. Many postings in comp.os.msdos.programmer sparked ideas or provided
  178. information for the first version of this list.  Though I am responsible
  179. for any errors, thanks are due to the following for posted articles or
  180. private email that I used in subsequent editions:  Mark Aitchison,
  181. Sanjay Aiyagari, George Almasi, Aaron Auseth, Preston Bannister, Denis
  182. Beauregard, Mike Black, Glynn Brooks, Paul Brooks, Ralf Brown, Shaun
  183. Burnett, Raymond Chen, Alan Drew, Roland Eriksson, Markus Fischer,
  184. George Forsman, B.Haible, Klaus Hartnegg, Kris Heidenstrom, Joel
  185. Hoffman, Michael Holin, Everett Kaser, Reinhard Kirchner, Dave Kirsch,
  186. Sidney Markowitz, Jim Marks, Dimitri Matzarakis, Ken McKee, Tom Milner,
  187. Steve Murphy, Mert Nickerson, David Nugent, Keith Petersen, Karl
  188. Riedling, Arthur Rubin, Gerald Ruderman, Timo Salmi, Tapio Sand, Ajay
  189. Shah, Tom Swingle, Ya-Gui Wei, Joe Wells, Gregory Youngblood,
  190. jenk@microsoft.com, khill@vax1.umkc.edu
  191.  
  192.  
  193. (continued in part 2)
  194. -- 
  195. Stan Brown, Oak Road Systems                      brown@Ncoast.ORG
  196.  
  197. "Never try to teach a pig to sing.  You'll only waste your time and
  198. annoy the pig."  Heinlein wrote it; I'd like to know the original source.
  199.