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: 103376,39ade949adb6bf4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: StdCall and pragma Import_Function Date: Fri, 19 Aug 2011 20:58:34 +0200 Organization: cbb software GmbH Message-ID: <11f8n1nxhs0hg$.16p4wm0m6u4nt.dlg@40tude.net> References: <332032a4-0acf-459d-a743-e90e823ca5af@glegroupsg2000goo.googlegroups.com> <118ybwhr53151$.fjqabmpo2k23$.dlg@40tude.net> <3feb634f-ca38-4f08-a6da-5299233f295e@glegroupsg2000goo.googlegroups.com> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: 4BmpYiTkDr8UHtmbtlcLdg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:20687 Date: 2011-08-19T20:58:34+02:00 List-Id: On Fri, 19 Aug 2011 10:07:21 -0700 (PDT), Felix Krause wrote: > What I'm wrapping is OpenCL, which does use StdCall (at least in AMD's Stream API distribution). 1. How exactly is this function declared in the header file? The convention must be specified there, e.g. as __stdcall, because it is not the native C/C++ convention. 2. How is this function is defined in the def file of the import library. You can see there its fully qualified name. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de