home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!mcsun!Germany.EU.net!cat!ludwig
- From: ludwig@cat.de (Stefan Ludwig)
- Subject: probs with tpw calling c-application
- Message-ID: <4hnfh4.b52@cat.de>
- Organization: C.A.T. Kommunikations-System
- Date: Fri, 18 Dec 92 19:06:08 GMT
- Lines: 27
-
- Der netters,
-
- we have the following problem with accessing (C)-huge pointers from
- Turbo pascal for Windows (V. 1.5):
-
- An application allows us to call our self-implemented DLL which we
- wrote using TPW 1.5. The application declares data structures like:
-
- double huge * DataArray
-
- and lets us get get the huge pointer via a DLL-call
- from Turbo Pascal as a Pascal-data-type "Pointer".
- Unfortunately we cannot use this pointer to acess data behind
- the 64k barrier.
-
- We tried to use pointer artihmetics in Turbo pascal but all we earned
- was yet another UAE. It seems, that Turbo pascal performs a different
- pointer arithmetic than C does with huge pointers.
-
- Does anybody know a solution to that problem?
-
- Any hints appreciated.
- (Please answer by email, because I dont regularly read this area)
-
- ---
- Stefan Ludwig (ludwig@cat.de)
- C.A.T. Kommunikations-System, Frankfurt, Germany
-