From: jca.miranda@gmail.com
Subject: Re: PSTR to Ada String.
Date: 26 Oct 2006 02:18:02 -0700
Date: 2006-10-26T02:18:02-07:00 [thread overview]
Message-ID: <1161854282.309813.291100@i3g2000cwc.googlegroups.com> (raw)
In-Reply-To: <1161809413.511008.220720@h48g2000cwc.googlegroups.com>
Jade a écrit :
> Hi
> I am using GNAT's ada bindings and with functions like gethostname, etc
> they choose to have a return value as a WIN32.PSTR.
> However, all my ada functions require either ada standard strings or
> characters. I was wondering if there is way of converting PSTR to an
> ada string.
>
> Thanks,
>
> Jade.
PSTR is simply a renaming for char * if I remember well.
So you should be able to make simple conversions thanks to
Ada.Interfaces.C To_C and To_Ada functions.
Rgds
Juan
P.S. : Hello Philippe! ^^ (Sorry for the noise added)
next prev parent reply other threads:[~2006-10-26 9:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-25 20:50 PSTR to Ada String Jade
2006-10-26 7:56 ` Gerd
2006-10-26 8:13 ` Philippe Bertin
2006-10-26 21:22 ` tmoran
2006-10-26 9:18 ` jca.miranda [this message]
2006-10-30 13:22 ` Jade
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox