From: "David Botton" <David@Botton.com>
Subject: Re: Passing Strings between Ada and C++
Date: 2000/01/12
Date: 2000-01-12T00:00:00+00:00 [thread overview]
Message-ID: <gS6f4.719$Ie5.70675@news4.usenetserver.com> (raw)
In-Reply-To: 387CDCEC.461BAB3F@cpmx.saic.com
If you want to be able to create a String on the Ada side and then Free it
on the MS VC side or vice versa, use BSTRs.
See the AdaCOM.BSTR in the AdaWin packages on AdaPower for examples of using
BSTRs with Ada. http://www.adapower.com/lab/adawin.html
David Botton
Caroline <caroline.j.swindellNOSPAM@cpmx.saic.com> wrote in message
news:387CDCEC.461BAB3F@cpmx.saic.com...
> I am experimenting with interlanguage programming and have the following
> question:
>
> What is the best way to pass a string from C++ to an Ada procedure and
> to pass one out of Ada back to C++? I would like to know in particular
> what incarnations of strings to use on each side.
>
> I am using Aonix ObjectAda 7.1.2 and MS Visual Studio 6.0.
>
> Thanks
> Caroline
>
> --
> Caroline Swindell
>
> Remove "NOSPAM." to reply.
>
>
next prev parent reply other threads:[~2000-01-12 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-01-12 0:00 Passing Strings between Ada and C++ Caroline
2000-01-12 0:00 ` David Botton [this message]
2000-01-12 0:00 ` David Starner
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox