home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / mswindo / programm / misc / 1446 < prev    next >
Encoding:
Text File  |  1992-08-21  |  993 b   |  36 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!cs.utexas.edu!usc!sol.ctr.columbia.edu!destroyer!ubc-cs!newsserver.sfu.ca!sfu.ca!dtam
  3. From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
  4. Subject: string > 64K in Windows
  5. Message-ID: <dtam.714469178@sfu.ca>
  6. Sender: news@sfu.ca
  7. Organization: Simon Fraser University, Burnaby, B.C., Canada
  8. Date: Sat, 22 Aug 1992 07:39:38 GMT
  9. Lines: 25
  10.  
  11. Hello :
  12.  
  13.  
  14.  
  15. I want to allocate a string which is greater than 64K in windows. This should
  16.  
  17. be possible with GlobalAlloc ( I can allocate max 1MB in standard mode and
  18.  
  19. 64MB in 386 enhanced mode) and with a huge??? pointer. However, all the
  20.  
  21. API functions in windows accept only FAR pointer (there's only 3 models for me
  22.  
  23. to choose : small, medium and large). And from the SDK documentation, I can
  24.  
  25. pass a huge pointer as FAR pointer only if the huge pointer will not straddle
  26.  
  27. a 64K boundary. What can I do if I really need to have a string which will
  28.  
  29. be greater than 64K?
  30.  
  31.  
  32.  
  33. Thanx in advance !!
  34.  
  35.  
  36.