home *** CD-ROM | disk | FTP | other *** search
/ Danny Amor's Online Library / Danny Amor's Online Library - Volume 1.iso / html / faqs / faq / msdos / programmer-faq.part1 < prev    next >
Encoding:
Text File  |  1995-07-25  |  10.9 KB  |  231 lines

  1. Subject: comp.os.msdos.programmer FAQ part 1 of 4
  2. Newsgroups: comp.os.msdos.programmer,comp.answers,news.answers
  3. From: brown@NCoast.ORG (Stan Brown)
  4. Date: Sat, 25 Sep 1993 14:09:54 GMT
  5.  
  6. Archive-name: msdos-programmer-faq/part1
  7. Last modified: 24 Sep 1993
  8.  
  9.  
  10. This is the FAQ list (Frequently Asked Questions list) for the newsgroup
  11. comp.os.msdos.programmer.  Parts 2 through 4 of this article are posted
  12. as followups in the same thread.  Starting 2 Feb 1993, new and revised
  13. answers are marked with "new:" or "rev:" and the change date.  The
  14. changes from the previous issue are posted in a separate article, with
  15. subject line "comp.os.msdos.programmer FAQ diffs".
  16.  
  17. If the posting date shown above is more than four weeks in the past, see
  18. instructions in part 4 of this list for how to get an updated copy.  (A
  19. separate article, posted before this one, holds the changes from the
  20. previous edition.  Look for the subject line "comp.os.msdos.programmer
  21. FAQ diffs".)
  22.  
  23. FAQ lists are intended to reduce the noise level in their newsgroups
  24. that results from the repetition of the same questions, correct answers,
  25. wrong answers, corrections to the wrong answers, corrections to the
  26. corrections, debate, etc.
  27.  
  28. This list should serve as a repository of the canonical "best" answers
  29. to the questions in it.  The names of folks who have helped to improve
  30. this FAQ list follow the table of contents.  If you know a better answer
  31. or even a slight change that improves an answer, please tell me!  (Use
  32. email, please.  Traffic in this group is high, and I may miss a relevant
  33. posted article.)  See the "From:" line in the header, or simply reply
  34. (rather than followup) to this article.
  35.  
  36.                       Stan Brown, Oak Road Systems, Cleveland, Ohio, USA
  37.                                                         brown@ncoast.org
  38.  
  39. Subject: Search tips
  40.  
  41.     This list is in digest format (if it's set up right).
  42.     To skip one topic and go to the next:  Search for "Subject" starting
  43. in column 1.  In trn and similar newsreaders, the command "g^Subject",
  44. or a simple Ctrl-G, does that.
  45.     To search for specific topics:  See the list of questions in the
  46. Table of Contents (immediately below) to find which article (part 2, 3,
  47. or 4) you need.  Then, in that part, search for that question number.
  48. For example, while you're reading part 2 of this list, the trn
  49. newsreader command "g  203" (note the two spaces) goes to question 203.
  50.     If your newsreader doesn't support searches, you can extract these
  51. articles to a file and use your favorite editor's search commands.
  52.  
  53.  
  54. Subject:  Table of Contents
  55.  
  56. (Sections 1-3 are in part 2 of this article; sections 4-7 in part 3, and
  57. sections A-C in part 4.)
  58.  
  59. section 1. General questions
  60.     101. Why won't my code work?
  61.     102. What is this newsgroup about?
  62.     103. Is comp.os.msdos.programmer just for C programmers?
  63.     104. What's the difference from comp.sys.ibm.pc.programmer?
  64.     105. Is comp.os.msdos.programmer available as a mailing list?
  65.     106. What's this "netiquette"?
  66.     107. How can I learn more about Usenet?
  67.     108. What other technical 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 format of an .OBJ file?
  78.     208. What's the format of an .EXE header?
  79.     209. What's the difference between .COM and .EXE formats?
  80. section 3. Keyboard
  81.     301. How can I read a character without echoing it to the screen,
  82.          and without waiting for the user to press the Enter key?
  83.     302. How can I find out whether a character has been typed, without
  84.          waiting for one?
  85.     303. How can I disable Ctrl-C/Ctrl-Break and/or Ctrl-Alt-Del?
  86.     304. How can I disable the print screen function?
  87.     305. How can my program turn NumLock (CapsLock, ScrollLock) on/off?
  88.     306. How can I speed up the keyboard's auto-repeat?
  89.     307. What is the SysRq key for?
  90.     308. How can my program tell what kind of keyboard is on the system?
  91.     309. How can I tell if input, output, or stderr has been redirected?
  92.     310. How can I increase the size of the keyboard buffer?
  93.     311. How can I stuff characters into the keyboard buffer?
  94. section 4. Disks and files
  95.     401. What drive was the PC booted from?
  96.     402. How can I boot from drive b:?
  97.     403. Which real and virtual disk drives are valid?
  98.     404. How can I make my single floppy drive both a: and b:?
  99.     405. How can I disable access to a drive?
  100.     406. How can a batch file test existence of a directory?
  101.     407. Why won't my C program open a file with a path?
  102.     408. How can I redirect printer output to a file?
  103.     409. How can I redirect the output of a batch file?
  104.     410. How can I redirect stderr?
  105.     411. How can my program open more files than DOS's limit of 20?
  106.     412. How can I read, create, change, or delete the volume label?
  107.     413. How can I get the disk serial number?
  108.     414. What's the format of .OBJ, .EXE., .COM files?
  109.     415. How can I flush the software disk cache?
  110. section 5. Serial ports (COM ports)
  111.     501. How do I set my machine up to use COM3 and COM4?
  112.     502. How do I find the I/O address of a COM port?
  113.     503. But aren't the COM ports always at I/O addresses 3F8, 2F8, 3E8,
  114.          and 2E8?
  115.     504. How do I configure a COM port and use it to transmit data?
  116. section 6. Other hardware questions and problems
  117.     601. Which 80x86 CPU is running my program?
  118.     602. How can a C program send control codes to my printer?
  119.     603. How can I redirect printer output to a file?
  120.     604. Which video adapter is installed?
  121.     605. How do I switch to 43- or 50-line mode?
  122.     606. How can I find the Microsoft mouse position and button status?
  123.     607. How can I access a specific address in the PC's memory?
  124.     608. How can I read or write my PC's CMOS memory?
  125.     609. How can I access memory beyond 640K?
  126.     610. Where can I find a list of 80x86 opcodes?
  127. section 7. Other software questions and problems
  128.     701. How can a program reboot my PC?
  129.     702. How can I time events with finer resolution than the system
  130.          clock's 55 ms (about 18 ticks a second)?
  131.     703. How can I find the error level of the previous program?
  132.     704. How can a program set DOS environment variables?
  133.     705. How can I change the switch character to - from /?
  134.     706. Why does my interrupt function behave strangely?
  135.     707. How can I write a TSR (terminate-stay-resident) utility?
  136.     708. How can I write a device driver?
  137.     709. What can I use to manage versions of software?
  138.     710. What's this "null pointer assignment" after my C program
  139.          executes?
  140.     711. How can my program tell if it's running under Windows?
  141.     712. How do I copyright software that I write?
  142. section A. Downloading
  143.     A01. What are Simtel, Garbo, and wustl?
  144.     A02. I have no ftp access.  How can I get files from the archives?
  145.     A03. Can I get archives on CD-ROM?
  146.     A04. Where do I find program <mumble>?
  147.     A05. How can I check Simtel or Garbo before I post a request for a
  148.          program?
  149.     A06. How do I download and decode a program I found?
  150.     A07. Where is UUDECODE?
  151.     A08. Why do I get errors when extracting from a ZIP file I
  152.          downloaded?
  153. section B. Vendors and products
  154.     B01. How can I contact Borland?
  155.     B02. How can I contact Microsoft?
  156.     B03. What's the current version of UNZIP?
  157.     B04. What's in Borland Pascal/Turbo Pascal 7.0?
  158.     B05. What's in Microsoft Visual C++?
  159.     B06. Where is Microsoft C 8.0?
  160.     B07. What is the phone number for a vendor's BBS?
  161. section C. More information
  162.     C01. Are there any good on-line references for PC hardware
  163.          components?
  164.     C02. Are there any good on-line references for PC interrupts?
  165.     C03. What and where is "Ralf Brown's interrupt list"?
  166.     C04. Where can I find lex, yacc, and language grammars?
  167.     C05. What's the best book to learn programming?
  168.     C06. Where are FAQ lists archived?
  169.     C07. Where can I get the latest copy of this FAQ list?
  170.     C08. How do I use ftp?
  171.  
  172.  
  173. Subject:  Acknowledgements
  174.  
  175. Through September 1993 this list was edited by Stan Brown, Oak Road
  176. Systems, Cleveland, Ohio.  "SB" in some answers refers to him.
  177.  
  178. Many articles posted in comp.os.msdos.programmer sparked ideas or
  179. provided information for the first version of this list.  Though they
  180. are not responsible for any errors, thanks are due to the following
  181. persons for posted articles or private email that led to improvements
  182. in this FAQ list:  Jamshid Afshar, Mark Aitchison, Sanjay Aiyagari,
  183. George Almasi, Aaron Auseth, Robert Baker, Preston Bannister, Scott
  184. Barman, Denis Beauregard, Per Bergland, Mike Black, Chris Blum, Mark
  185. Brader, Jon Brinkmann, Andrew James Bromage, Glynn Brooks, Paul Brooks,
  186. Ralf Brown, Shaun Burnett, Raymond Chen, Denny de Jonge, Eric DeVolder,
  187. Alan Drew, Paul Ducklin, Gary Dueck, Roland Eriksson, Mark Evans, Markus
  188. Fischer, George Forsman, Roger Fulton, Vincent Giovannone, Robert
  189. Grunloh, B.Haible, Janos Haide, Klaus Hartnegg, Kris Heidenstrom, Tom
  190. Haapanen, Joel Hoffman, Ari Hovila, Chin Huang, Joe Huffman, Michael
  191. Holin, Mike Iarrobino, Byrial Jensen, Rune Jorgensen, Ajay Kamdar,
  192. Everett Kaser, Jeff Kellam, Jen Kilmer, Reinhard Kirchner, Dave Kirsch,
  193. Chad Knudsen, Samuel Ko, Benjamin Lee, Stephen Lee, Jim Lynch, Greg
  194. Malknecht, Sidney Markowitz, Jim Marks, Dimitri Matzarakis, Fred McCall,
  195. Ken McKee, Doug Merrett, Tom Milner, Bill Moore, Duncan Murdoch, Steve
  196. Murphy, Daniel Neri, Mert Nickerson, David Nugent, John Oldenburg, David
  197. Pape, Keith Petersen, Karl Riedling, Arthur Rubin, Gerald Ruderman, Timo
  198. Salmi, Tapio Sand, John Schmid, Russell Schulz, Huseyin Sevay, Ajay
  199. Shah, Steve Summit, Tom Swingle, Anders Thulin, Curt Tilmes, Rick
  200. Watkins, Ya-Gui Wei, Joe Wells, Scott Winder, Gregory Youngblood,
  201. khill@vax1.umkc.edu
  202.  
  203. New contributors this issue: Chin Huang
  204.  
  205.  
  206. Subject:  Legalistic stuff
  207.  
  208. This article is not in the public domain, but it may be redistributed so
  209. long as this notice, the acknowledgements, and the information on
  210. obtaining the latest copy of this list are retained and no fee is
  211. charged.  The code fragments may be used freely; credit would be polite.
  212.  
  213. Copyright (C) 1993  Stan Brown, Oak Road Systems.  All rights reserved.
  214.  
  215. THERE IS NO WARRANTY ON THE CODE.  All the code included below has been
  216. tested; but the testing may not have been perfect, and machines and
  217. configurations vary.  (Except where otherwise noted, code was tested
  218. with both BC++ 2.0 and MSC 5.0.)
  219.  
  220. The mention of particular books or programs must not be construed to
  221. reflect unfavorably on any that are not mentioned.
  222.  
  223.  
  224. (continued in part 2)
  225. -- 
  226. Stan Brown, Oak Road Systems                    brown@Ncoast.ORG
  227.  
  228. Can't find FAQ lists?  ftp to 'rtfm.mit.edu' and look in /pub/usenet
  229. (or email me >>> with valid reply-to address <<< for instructions).
  230.  
  231.