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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,666ea7941e10cfc2 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-11 19:40:26 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.sttls1.wa.home.com.POSTED!not-for-mail From: "DuckE" Newsgroups: comp.lang.ada References: Subject: Re: Mixed Ada and C program X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Tue, 12 Jun 2001 02:40:25 GMT NNTP-Posting-Host: 24.248.45.203 X-Complaints-To: abuse@home.net X-Trace: news1.sttls1.wa.home.com 992313625 24.248.45.203 (Mon, 11 Jun 2001 19:40:25 PDT) NNTP-Posting-Date: Mon, 11 Jun 2001 19:40:25 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:8591 Date: 2001-06-12T02:40:25+00:00 List-Id: While you can certainly do this, you shouldn't have to go to the trouble. You should be able to export the procedure or function directly: PROCEDURE My_Procedure; PRAGMA Export( C, My_Procedure ); PROCEDURE My_Procedure IS BEGIN -- Do_Something NULL; END My_Procedure; While I haven't done this with 'C', I have exported Ada functions and procedures using 'C' conventions and then linked the functions and procedures with Delphi. I would think things would work the same way. SteveD. "Joelle Lavergne" wrote in message news:h55V6.898$j6.76089@news... > I have answered my question... I will pass the adress of the Ada procedure > to the C function. > > Thanks > > Joelle Lavergne wrote in message > news:rF4V6.895$j6.75257@news... > > Hello I am pretty new to the Ada world. > > > > I need to build an application using Ada and C. The main application is in > > Ada but I need to import C function to Ada and export Ada procedures to C. > > My problem is when exporting my Ada procedure to C. > > > > Could anybody give me some info on how to call this Ada procedure from C ? > > > > Thanks > > > > > >