comp.lang.ada
 help / color / mirror / Atom feed
* Access to data indirection (newbie)
@ 2007-11-27  7:10 axtens
  2007-11-27  8:11 ` Martin Krischik
  0 siblings, 1 reply; 6+ messages in thread
From: axtens @ 2007-11-27  7:10 UTC (permalink / raw)


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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-11-28  3:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-27  7:10 Access to data indirection (newbie) axtens
2007-11-27  8:11 ` Martin Krischik
2007-11-27 17:32   ` Martin Krischik
2007-11-27 22:20   ` Simon Wright
2007-11-28  3:04     ` axtens
2007-11-28  3:45       ` axtens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox