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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c5a05c757ae3decf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-31 10:58:22 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: "Beard, Frank" Newsgroups: comp.lang.ada Subject: RE: How do I use cards.dll from Aonix OA? Date: Fri, 31 Aug 2001 13:55:09 -0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: avanie.enst.fr 999280701 25371 137.194.161.2 (31 Aug 2001 17:58:21 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 31 Aug 2001 17:58:21 +0000 (UTC) To: "'comp.lang.ada@ada.eu.org'" Return-Path: X-Mailer: Internet Mail Service (5.5.2448.0) Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:12616 Date: 2001-08-31T13:55:09-04:00 You need to find cards.lib. You add this to the project just like you add your Ada source files, except using the "Files of Type:" combo box to select "Library Files (*.lib)". cards.lib defines the interface to cards.dll. Once you link it, the DLL has to be in the same directory as the executable that loads it, or in the PATH defined in the System Properties Environment tab (assuming Windows NT/2000). If you can't find cards.lib, I think your only option is to use the LoadLibrary API, but I can't remember. Running dumpbin on cards.dll produced the following: C:\WINNT\system32>dumpbin /EXPORTS cards.dll Microsoft (R) COFF Binary File Dumper Version 5.00.7022 Copyright (C) Microsoft Corp 1992-1997. All rights reserved. Dump of file cards.dll File Type: DLL Section contains the following Exports for CARDS.dll 0 characteristics 31EC71A6 time date stamp Wed Jul 17 00:52:54 1996 0.00 version 1 ordinal base 6 number of functions 6 number of names ordinal hint name 1 0 WEP (0000191E) 2 1 cdtAnimate (00001579) 3 2 cdtDraw (0000144A) 4 3 cdtDrawExt (000010F1) 5 4 cdtInit (00001011) 6 5 cdtTerm (000018C9) Summary 1000 .data 1000 .rdata 1000 .reloc 24000 .rsrc 1000 .text The exported names appear not to be mangled, so you don't have to worry about leading underscores or trailing "@#'s". Frank -----Original Message----- From: Petter Fryklund [mailto:qsbpefr@esavionics.se] No, cdtInit is the initialization of cards.dll. I started with that one just to see if I could use any routine in there. I tried to add the file cards.dll to the files in the project, but that was obviously not right. I couldn't fine any instructions on how to tell the linker where to look. Do you know?