home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3243 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.5 KB

  1. Path: sparky!uunet!lax.pe-nelson.com!lax!twbrown
  2. From: twbrown@PE-Nelson.COM (Tom W. Brown)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Re: A quick question
  5. Message-ID: <684@lax.lax.pe-nelson.com>
  6. Date: 5 Nov 92 18:06:08 GMT
  7. References: <1992Nov4.142239.8200@msuinfo.cl.msu.edu>
  8. Sender: news@lax.pe-nelson.com
  9. Organization: PE-Nelson
  10. Lines: 22
  11.  
  12. In article <1992Nov4.142239.8200@msuinfo.cl.msu.edu>, regentin@cpsin2.cps.msu.edu (Curtis Regentin) writes:
  13. |> 
  14. |>   Howdy, I'm fairly new to windows programming, and I've got a quick
  15. |> question that I hope someone can help me out with.  I'm writing some
  16. |> data collection software, and I need to do some simple interaction with
  17. |> an IO card.  Will windows let me just write to some registers at say
  18. |> 0x300?  Do I have to tell it that I'm going to be using that area?  If
  19. |> so, how?  (Using 3.0 on a 386, btw ;)
  20.  
  21. Yes, Windows will allow I/O access -- you can do this in C/C++ with the
  22. inport() and outport() routines, or in assembly language.
  23.  
  24. If you need to access memory mapped data then you'll need to use the exported
  25. selectors (e.g. __0000H) to build the pointers, but port I/O will work
  26. without any extra effort (at least it does for us :-)
  27.  
  28.  
  29. ----------------------------------------------------------------------------
  30. Tom Brown               |  "'ow d'you know 'e's a king?
  31. PE Nelson Systems       |            'cause 'e 'asn't got shit all over 'im!"
  32. twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
  33. ----------------------------------------------------------------------------
  34.