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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8f0fbe01a5c0ce8c,start X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j12g2000vbl.googlegroups.com!not-for-mail From: cedric Newsgroups: comp.lang.ada Subject: Interfacing with C Date: Mon, 18 May 2009 04:29:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <250d9b93-13bf-4375-8b35-a1b0a7f74d99@j12g2000vbl.googlegroups.com> NNTP-Posting-Host: 93.129.76.131 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1242646184 25900 127.0.0.1 (18 May 2009 11:29:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 18 May 2009 11:29:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: j12g2000vbl.googlegroups.com; posting-host=93.129.76.131; posting-account=2oP9FAoAAABETh6kmIxZYpu-PRfnBweU User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.7) Gecko/2009032803 Iceweasel/3.0.6 (Debian-3.0.6-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5893 Date: 2009-05-18T04:29:44-07:00 List-Id: Hi All, I would like to connect a C interface to another software package with my Ada programs. The h-file of the api contains the following pre-processor commands: #ifdef SPSSXD_EXPORTS # define SPSSXD_API __declspec(dllexport) #else # if MS_WINDOWS # define SPSSXD_API __declspec(dllimport) # else # define SPSSXD_API # endif #endif Some functions headers are SPSSXD_API bool IsBackendReady(); SPSSXD_API int SetUpFromSPSS(SpssAdapter* anAdapter, SpssXDSmb* anSmb); What do I have to do to get a connection between the C functions and my Ada program with regard to the commands of the pre-processor? Regards Cedric