comp.lang.ada
 help / color / mirror / Atom feed
From: news.ans.net!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews@gatech.
Subject: p
Date: 5 May 93 14:13:33 GMT	[thread overview]
Message-ID: <1993May5.091333.1@desire.wright.edu> (raw)

I am trying to provide an interface for a modeling environment to allow
models written in C++ to be used.  I need some information on interfaceing
SUN Ada to Sun's C++.  I understand how to call C routines, and have C
routines call back to the Ada environment.  I seem to be ok on mapping
equivalent data structures so that i can pass records, arrays etc back
and forth.  I had a bit of a problem with dynamic arrays but i cam up
with a method which seems to be ok (and does not involve building
implementation specific things like verdix's dope vectors). It might be
a little slower than i would like but, at least its doable.  However i
am currently trying to figure out how to interface to C++ classes. I
need to be able to call member functions from these classes.  If anyone
could point me in the direction of how to do this, or better yet share some
code, i would be most appreciative.   I also do not see any way of having
C or C++ code call ada generics. Pragma interface does not seem to work for
calling the procedures inside a generic after its instatiated.  I get a
constraint error.  Any information on how to do this would also be much
appreciated.  thanks a lot.  Jim Hopper
hopperj@ccmail.dayton.saic.com

I posted the above for a friend who has temp. lost the ability to post to
news.  please respond either to the net or to his email.  Oh he says that
he will provide the net with a summery of responses if anyone else is
interested.  John Matthews

                 reply	other threads:[~1993-05-05 14:13 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

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