home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / pascal / 8551 < prev    next >
Encoding:
Text File  |  1993-01-26  |  1.1 KB  |  35 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!Germany.EU.net!gmd.de!gmd.de!focke
  3. From: focke@gmd.de (Stefan Focke)
  4. Subject: TPW problem: Using huge structures (GlobalAlloc)
  5. Message-ID: <focke.153.728048311@gmd.de>
  6. Sender: news@gmd.de (USENET News)
  7. Nntp-Posting-Host: novell2
  8. Organization: gmd
  9. Date: Tue, 26 Jan 1993 11:38:31 GMT
  10. Lines: 23
  11.  
  12. Hello!
  13.  
  14. With GlobalAlloc and GlobalLock I got a pointer to a memory block witch size 
  15. is 600 kBytes.
  16.  
  17. I want to fill this block with a pattern. So I tried FillChar and found out, 
  18. that it is not possible to fill more than one segment (64 k) with this 
  19. procedure. 
  20.  
  21. My problem is: How can I get the address of the next segment of this block?
  22.                If p is a pointer to the first segment of the 600kB block,
  23.                p=ptr(seg(p)+1,0) seems to be wrong.    
  24.  
  25. Thank you
  26.  
  27. Stefan Focke  (focke@gmd.de)
  28.  
  29. ----------------------------------------------------------------------
  30.  
  31. Stefan Focke                  Tel. 02241-14-3154
  32. GMD-I8                        e-mail: stefan.focke@gmd.de
  33. Postfach 1316
  34. D-W 5205 Sankt Augustin 1            
  35.