comp.lang.ada
 help / color / mirror / Atom feed
From: Anonymous Coward <spam@spam.net>
Subject: Re: Importing and using a C++  class in Ada. Pragma Cpp_Constructor, Cpp_Class
Date: Wed, 09 Nov 2005 03:38:55 GMT
Date: 2005-11-09T03:38:55+00:00	[thread overview]
Message-ID: <slrndn32sd.lo7.bogus_addy@tango.mindfuq.org> (raw)
In-Reply-To: mailman.108.1115327462.24457.comp.lang.ada@ada-france.org

In article <mailman.108.1115327462.24457.comp.lang.ada@ada-france.org>, Christopher Gosset wrote:
>
> I need to use some classes from a DLL in my Ada app. I was hoping
> that this was a straigthforward thing to do using pragma import and
> pragma cpp_class and cpp_constructor. Is there a working example of
> this somwhere. I am building the damn dll myself and I am also
> buliding the damn .def file myself but the damn thing will still not
> work. Functions that are not class members are no problem this works
> perfect! Are there any tutorials, sample code available on this? As
> I see it this is far from intuitive and its a major reason for NOT
> converting to ada. What I would like is a simple "MS Visual Studio "
> like library brows tree thing. So instead of having to "build a new
> operating system" to solve even the most trivial task, such as
> calling a member function or a constructor I could actually add a
> with clause or import clause and then be able to see whats available
> in the lib.
> 
> So if anyone has a working sample on the usage of these pragmas I
> would be more than happy.
> 
> I assume that the fact that there are no examples of the usage of
> these Pragmas in the userguide or reference manual suggests that
> this is not as straigth forward as advertised.  /CG

Were you successful in finding what you needed CG?  I'm not sure how
old your post is.. I interfaced to CPP classes before, and have some
examples.  If you're still interested, I might post them.



      parent reply	other threads:[~2005-11-09  3:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20050505100047.AB84F4C40D0@lovelace.ada-france.org>
2005-05-05 21:10 ` Importing and using a C++ class in Ada. Pragma Cpp_Constructor, Cpp_Class Christopher Gosset
2005-05-06  3:20   ` Importing and using a C++ class in Ada. Pragma Cpp_Constructor,Cpp_Class Steve
2005-05-06  8:07   ` Importing and using a C++ class in Ada. Pragma Cpp_Constructor, Cpp_Class Adrien Plisson
2005-05-06  9:03   ` Importing and using a C++ class in Ada. Pragma Cpp_Constructor,Cpp_Class Rob W. Norris
2005-11-09  3:38   ` Anonymous Coward [this message]
replies disabled

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