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,XPRIO autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3bf6d9205a4ec377,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Thomas Krueger" Newsgroups: comp.lang.ada Subject: calling a dll Date: Wed, 3 May 2006 08:54:27 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 NNTP-Posting-Host: 139.30.204.19 X-Original-NNTP-Posting-Host: 139.30.204.19 Message-ID: <445853a0$1@news.uni-rostock.de> X-Trace: news.uni-rostock.de 1146639264 139.30.204.19 (3 May 2006 08:54:24 +0200) Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.hanau.net!news-fra1.dfn.de!news-ham1.dfn.de!news.uni-rostock.de!not-for-mail Xref: g2news2.google.com comp.lang.ada:4027 Date: 2006-05-03T08:54:27+02:00 List-Id: Hello, i've got a problem calling a dll. This dll is written in C. I've build a specification file where i described all types and function prototypes. I've tried to link the dll with dynamically using Loadlibrary, GetProcAdress etc. and statically using the import library. In both ways my programm could be built without any problem. Some functions from the dll can be called without a problem. But in some other cases the function in the dll raises an internal error. But the dll works correctly when called by a c programm. Maybe you can help me - what are common errors by calling a dll with gnat? Thanks in advance Thomas