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,c5a05c757ae3decf X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-09-07 03:44:09 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.highwayone.net!newsfeed1.telenordia.se!algonet!uab.ericsson.se!erix.ericsson.se!newstoo.ericsson.se!not-for-mail From: "Petter Fryklund" Newsgroups: comp.lang.ada Subject: Re: How do I use cards.dll from Aonix OA? Date: Fri, 7 Sep 2001 12:44:23 +0200 Organization: ericsson Message-ID: <9na792$iqi$1@newstoo.ericsson.se> References: <9mn9k0$dqf$1@newstoo.ericsson.se> <9mvmsf$ld1$1@newstoo.ericsson.se> NNTP-Posting-Host: 172.17.76.206 X-Newsreader: Microsoft Outlook Express 4.72.2106.4 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 Xref: archiver1.google.com comp.lang.ada:12879 Date: 2001-09-07T12:44:23+02:00 List-Id: I tried to use LoadLibrary in the following example: cdt_Str : constant String := "C:\WINDOWS\SYSTEM\CARDS.DLL" & Character'First; DLL : Hinstance; .... DLL := LoadLIbrary (cdt_Str); but this only returned 0, which I assume is no good. Any suggestions? Petter Fryklund wrote in message <9mvmsf$ld1$1@newstoo.ericsson.se>... >cards.dll is used by ie solitaire and others games needing a card deck ;-) >It's probably present in most WIndows systems. I'm trying to learn Windows >programming and having some fun while I'm doing it :-) I'm a bridge fanatic. >I have a command line deal generator that I'd like to convert graphics. > >tmoran@acm.org wrote in message ... >>>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? >> If cdtInit is an entry point in cards.dll then you need to call the OS >>functions (LoadLibraryA et al) to *dynamically* load the DLL and give you >>a pointer to cdtInit. At *link time* cards.dll need not even exist. >>You can either code your own OS calls, or find a routine in a .lib >>that knows how to do it, and then statically link from that .lib Where >>did cards.dll come from and did it have an associated .lib file? > >