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: 103376,ad829d3ec11d6354 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!j73g2000cwa.googlegroups.com!not-for-mail From: "Gerd" Newsgroups: comp.lang.ada Subject: Re: Problem creating bindings - please help Date: 18 May 2006 03:51:48 -0700 Organization: http://groups.google.com Message-ID: <1147949508.476468.302020@j73g2000cwa.googlegroups.com> References: <1147934783.645893.274580@u72g2000cwu.googlegroups.com> NNTP-Posting-Host: 62.159.113.204 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1147949513 18054 127.0.0.1 (18 May 2006 10:51:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 18 May 2006 10:51:53 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: j73g2000cwa.googlegroups.com; posting-host=62.159.113.204; posting-account=_FaVAg0AAAAYUPoPAQYNRFF35JBHf9i7 Xref: g2news2.google.com comp.lang.ada:4291 Date: 2006-05-18T03:51:48-07:00 List-Id: > What about "_CAN_GetHwParam"? It looks like 'extern "C"' stuff. The GNAT Users Guide say that the "_" and the "@16" is appended automatically for "__stdcall" (as far as I understood). And the function is declared as "__stdcall" in the header-file. > BTW, is it a CAN-bus adapter APIs? Which vendor? Yes, it is. It's a "PEAK-Service GmbH, Darmstadt" device. Are there any CAN-bus bindings for Ada available on the net (for any vendor)? > What about "_CAN_GetHwParam"? It looks like 'extern "C"' stuff. > Or maybe, pragma Import (C, CAN_GetHwParam, "CAN_GetHwParam"); Thanks, I will try it. Gerd