home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / mswindo / programm / misc / 999 < prev    next >
Encoding:
Internet Message Format  |  1992-07-25  |  1.7 KB

  1. Path: sparky!uunet!dtix!darwin.sura.net!news.udel.edu!bach.udel.edu!radel
  2. From: radel@bach.udel.edu (Todd Radel)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: Help using DPMI "Allocate DOS Memory Block"
  5. Message-ID: <BrwrI5.FGG@news.udel.edu>
  6. Date: 24 Jul 92 19:30:05 GMT
  7. Sender: usenet@news.udel.edu
  8. Organization: University of Delaware
  9. Lines: 30
  10. Nntp-Posting-Host: bach.udel.edu
  11.  
  12. Well, it's time for another installment of "Help Todd get his stuff
  13. to work under Windows."  :-)  :-)
  14.  
  15. I'm trying to use the DPMI services in Windows 3.1 to communicate with
  16. a DOS program running in a window.  The DOS program is a server which
  17. communicates with a couple of transputer boards installed in the system.
  18. The transputers support DMA transfers, but only as long as the server
  19. is running.  Thus, if I want to bring data into my Windows program,
  20. I have to start the server, allocate some memory, tell the server
  21. where to find it, and wait for data to come in.
  22.  
  23. Of course, giving the server the value of a pointer won't work
  24. because of the way Windows handles virtual memory in VDM's.  The
  25. DPMI function "Allocate DOS Memory Block" (AX= 0100h) seems to be
  26. what I need.  But what is a "selector", and how do I use it? I
  27. know I can pass the transputer server the real-mode segment of the
  28. allocated block (or can I?), but how do I access the allocated
  29. memory from within my program?
  30.  
  31. Oh yeah, this is 386Enh mode, of course.
  32.  
  33. Thanks in advance for any help...
  34.  
  35. -- Todd
  36.  
  37. -- 
  38. Todd Radel                   | "I obscenity in the milk of all," Agustin said,
  39. CIS/English undergrad        | "if it does not seem like a lunatic asylum in
  40. University of Delaware       | here." -- Hemingway, _For Whom the Bell Tolls_
  41. A.I. duPont Institute, 1600 Rockland Road, Wilmington, DE  19899
  42.