From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8a3b943d6cda9a77,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.google.com!proxad.net!usenet-fr.net!news.enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Christopher Gosset" Newsgroups: comp.lang.ada Subject: Importing and using a C++ class in Ada. Pragma Cpp_Constructor, Cpp_Class Date: Thu, 5 May 2005 23:10:25 +0200 Organization: Cuivre, Argent, Or Message-ID: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: melchior.cuivre.fr.eu.org 1115327464 40691 212.85.156.195 (5 May 2005 21:11:04 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Thu, 5 May 2005 21:11:04 +0000 (UTC) To: Return-Path: X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <20050505100047.AB84F4C40D0@lovelace.ada-france.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: g2news1.google.com comp.lang.ada:10936 Date: 2005-05-05T23:10:25+02:00 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.=20 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. =20 /CG