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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,9192417d428824a0 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!feeder.news-service.com!newsfeed.freenet.de!bolzen.all.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Problem with QTAda 3.0 and QTCore4.dll on Windows Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1660bebd-45ca-4568-b92a-380614d94ecc@c34g2000yqn.googlegroups.com> <8ec14209-e505-4873-86b4-294149841777@v25g2000yqk.googlegroups.com> <199i04cdgiqlc$.1tlj9wnffh6g9$.dlg@40tude.net> <872e99c3-5dbc-4ac0-8a82-050b63fc7352@s3g2000yqs.googlegroups.com> Date: Fri, 8 Jan 2010 10:41:15 +0100 Message-ID: <3m742ykmehcx$.kb15fyietkrp.dlg@40tude.net> NNTP-Posting-Date: 08 Jan 2010 10:41:12 CET NNTP-Posting-Host: d52def89.newsspool1.arcor-online.net X-Trace: DXC=QjjLBIA<`D;^8FBo0_81f>ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2[kA=fVc`CZ?[6LHn;2LCV>[ On Thu, 7 Jan 2010 23:10:25 -0800 (PST), Vadim Godunko wrote: > On Jan 8, 1:32�am, Hibou57 (Yannick Duch�ne) > wrote: >> >> While I do not know about the technical details, I use to read from >> place to place, GNAT provides a custom support for interfacing Ada and >> C++ library, as well as ObjectAda does, if I'm not wrong. >> > GNAT C++ interface feature is expected to be used only with C++ code > compiled by G++. Don't known about ObjectAda, may be it can interface > with MSVC. You can even debug programs compiled by ObjectAda (7.2) in Visual Studio, to a certain extent. However, I cannot tell if ObjectAda C++ interfacing works, I never tried that. To be honest, it is a big mistake to make a library with only C++ interface, because that exposes not only the constants, subprograms and their profiles defined in terms of simple types, but it also does virtual tables and internal layouts of the classes. That is too much coupling from the software design point of view. (The same would apply to Ada's tagged types, unfortunately.) -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de