From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05 autolearn=ham autolearn_force=no version=3.4.5-pre1 Date: 5 May 93 14:13:33 GMT From: news.ans.net!malgudi.oar.net!hyperion!desire.wright.edu!jmatthews@gatech. edu Subject: p Message-ID: <1993May5.091333.1@desire.wright.edu> List-Id: 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