home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / pascal / 7569 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.2 KB  |  37 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!mcsun!Germany.EU.net!cat!ludwig
  3. From: ludwig@cat.de (Stefan Ludwig)
  4. Subject: probs with tpw calling c-application
  5. Message-ID: <4hnfh4.b52@cat.de>
  6. Organization: C.A.T. Kommunikations-System
  7. Date: Fri, 18 Dec 92 19:06:08 GMT
  8. Lines: 27
  9.  
  10. Der netters,
  11.  
  12. we have the following problem with accessing (C)-huge pointers from
  13. Turbo pascal for Windows (V. 1.5):
  14.  
  15. An application allows us to call our self-implemented DLL which we
  16. wrote using TPW 1.5. The application declares data structures like:
  17.  
  18.     double huge * DataArray
  19.  
  20. and lets us get get the huge pointer via a DLL-call
  21. from Turbo Pascal as a Pascal-data-type "Pointer".
  22. Unfortunately we cannot use this pointer to  acess data behind
  23. the 64k barrier.
  24.  
  25. We tried to use pointer artihmetics in Turbo pascal but all we earned
  26. was yet another UAE. It seems, that Turbo pascal performs a different
  27. pointer arithmetic than C does with huge pointers.
  28.  
  29. Does anybody know a solution to that problem?
  30.  
  31. Any hints appreciated.
  32. (Please answer by email, because I dont regularly read this area)
  33.  
  34. ---
  35.   Stefan Ludwig (ludwig@cat.de)                     
  36.   C.A.T. Kommunikations-System, Frankfurt, Germany
  37.