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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,889b07ac9e6ac6a3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.189.197 with SMTP id gk5mr5345975pbc.1.1330718628484; Fri, 02 Mar 2012 12:03:48 -0800 (PST) Path: h9ni31713pbe.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: "Rego, P." Newsgroups: comp.lang.ada Subject: Re: Using dll from a C# code Date: Fri, 2 Mar 2012 12:03:48 -0800 (PST) Organization: http://groups.google.com Message-ID: <26730336.64.1330718628192.JavaMail.geo-discussion-forums@ynil17> References: <3622013.252.1330516368698.JavaMail.geo-discussion-forums@ynkz21> <189548.691.1330568785536.JavaMail.geo-discussion-forums@ynlt17> <2d391aa2-23ed-4c29-96a5-3292ae13bfb7@l7g2000vbw.googlegroups.com> <24322569.1107.1330602115411.JavaMail.geo-discussion-forums@ynjd19> <171511.1487.1330612732304.JavaMail.geo-discussion-forums@vbw15> <8428126.175.1330614914704.JavaMail.geo-discussion-forums@ynnj12> <233c1697-d402-49a7-a556-df74cd783169@do4g2000vbb.googlegroups.com> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 X-Trace: posting.google.com 1330718628 6401 127.0.0.1 (2 Mar 2012 20:03:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 2 Mar 2012 20:03:48 +0000 (UTC) In-Reply-To: <233c1697-d402-49a7-a556-df74cd783169@do4g2000vbb.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=201.7.145.1; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-03-02T12:03:48-08:00 List-Id: > Your PC with an Intel processor and Windows is a different machine > than the .NET virtual platform, with MSIL as machine code. > If you compile a module with language X into machine code for machine > A, and another module with language Y into another machine code, > machine B/=A, you won't be able to make both work together. > For instance you won't make a Commodore 64 machine code and a PC > machine code work together. > Perhaps if you think to a Commodore 64 emulator instead of the .NET > platform, it will be clearer. > So you need to find a common machine for compiling both languages. > For C#, only one choice: MSIL > For Ada, you have plenty of choices: Windows&Intel32/64, > Linux&Intel32/64/..., MacOSX&PowerPC/Intel, JVM, MSIL, UNIX, > OpenVMS, ... > And, hurray, you realize there is one common target machine in the > list: MSIL. > So you have to use the GNAT-for-.NET, not the GNAT-for-Windows. > > Got it ? Got it. So the target application would have to be recompiled using gnat-for-.net.