comp.lang.ada
 help / color / mirror / Atom feed
* p
@ 1993-05-05 14:13 news.ans.net!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews
  0 siblings, 0 replies; only message in thread
From: news.ans.net!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews @ 1993-05-05 14:13 UTC (permalink / 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1993-05-05 14:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1993-05-05 14:13 p news.ans.net!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews

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