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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4e5840c8658b8b86 X-Google-Attributes: gid103376,public From: "David Botton" Subject: Re: Passing Strings between Ada and C++ Date: 2000/01/12 Message-ID: #1/1 X-Deja-AN: 571825215 References: <387CDCEC.461BAB3F@cpmx.saic.com> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: admin@usenetserver.com Organization: UseNet Server, Inc. http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. X-MSMail-Priority: Normal NNTP-Posting-Date: Wed, 12 Jan 2000 17:02:52 EST Newsgroups: comp.lang.ada Date: 2000-01-12T00:00:00+00:00 List-Id: 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 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. > >