From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1fb2c23b98beed60,start X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!s8g2000prg.googlegroups.com!not-for-mail From: axtens Newsgroups: comp.lang.ada Subject: Access to data indirection (newbie) Date: Mon, 26 Nov 2007 23:10:49 -0800 (PST) Organization: http://groups.google.com Message-ID: <1a812241-65fc-403a-927f-b2651b4107e3@s8g2000prg.googlegroups.com> NNTP-Posting-Host: 165.228.152.196 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1196147449 4957 127.0.0.1 (27 Nov 2007 07:10:49 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 27 Nov 2007 07:10:49 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s8g2000prg.googlegroups.com; posting-host=165.228.152.196; posting-account=1W9SuAoAAAApKJ8N7QNszANYOyWIVzjG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9,gzip(gfe),gzip(gfe) Content-Disposition: inline Xref: g2news1.google.com comp.lang.ada:18643 Date: 2007-11-26T23:10:49-08:00 List-Id: G'day everyone I have a DLL which is receiving a value that is the result of a VARPTR in VB6, so the value arriving is the address and the data desired can be found at that address. So far I've gotten as far as function HandlePointer ( Left : in Win32.LONG) return Win32.LONG is begin end HandlePointer; which is, of course, brain-dead. Fact is, though, so far as Ada is concerned, I'm a newbie. So tell me, what's the syntax? Once you've figured that one out, tell me how I'd handle 'Left' pointing to a record of two integers, such that I can access both elements of the record. Kind regards, Bruce.