home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10651 < prev    next >
Encoding:
Internet Message Format  |  1992-11-15  |  9.1 KB

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