comp.lang.ada
 help / color / mirror / Atom feed
From: "David Botton" <David@Botton.com>
To: <comp.lang.ada@ada.eu.org>
Subject: Re: Interfacing with C++
Date: Thu, 11 Oct 2001 07:37:24 -0400
Date: 2001-10-11T07:37:24-04:00	[thread overview]
Message-ID: <mailman.1002800235.9019.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: F2728u4xIt1YtxQEfQm00001bff@hotmail.com

The following works:

procedure MyString (C_String : in Interfaces.C.Char_Array) is etc.

From C/C++

CString theStr;

MyString ((LPCSTR) theStr);


What exactly are you looking to do?

David Botton



----- Original Message -----
From: "Hagi Yilmaz" <hagihun@hotmail.com>
To: <comp.lang.ada@ada.eu.org>
Sent: Wednesday, October 10, 2001 4:01 PM
Subject: Interfacing with C++


> Hello,
>
> How Can I map the "CString" in VC++ to Ada 95?
>
> Can I pass the "CString" from VC++ as parameter to an Ada procedure or
> function.
>
> In fact I Use at the moment the (char *) for Interface, but I have to
> allocate it from VC++ or from Ada 95 (chars_ptr) .And of course
de-allocate
> it, not to cause a storage leak.
>
>    But i thougt if i could use "CString" somehow, i would not have to deal
> with memory leaks anymore.
>
> Can anybody help me for that? ...
>
> Best Regards.
>
> Hagi Yilmaz
> hagihun@hotmail.com
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> _______________________________________________
> comp.lang.ada mailing list
> comp.lang.ada@ada.eu.org
> http://ada.eu.org/mailman/listinfo/comp.lang.ada
>




       reply	other threads:[~2001-10-11 11:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <F2728u4xIt1YtxQEfQm00001bff@hotmail.com>
2001-10-11 11:37 ` David Botton [this message]
2001-10-10 20:01 Interfacing with C++ Hagi Yilmaz
2001-10-11 11:06 ` Peter Hend�n
  -- strict thread matches above, loose matches on Subject: below --
2001-06-21 20:28 Hagi Yilmaz
2001-06-21 20:44 ` Ted Dennison
replies disabled

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