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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,d2a7ab292898908a X-Google-Attributes: gid103376,public From: Sune.S.Falck@telia.se (Sune Falck) Subject: Re: Importing calls to access Windows registry Date: 1999/05/07 Message-ID: #1/1 X-Deja-AN: 475145338 Sender: news@malmo.trab.se X-Nntp-Posting-Host: dhcp250.farsta.trab.se References: <7gulm9$20b$1@nnrp1.deja.com> Organization: Telia ProSoft AB, Sweden Newsgroups: comp.lang.ada Date: 1999-05-07T00:00:00+00:00 List-Id: RegOpenKey is in the advapi32.dll so you must somehow add advapi32.lib to the linker command line. One way might be to add ...objecta\apilib as a search path in the Objectada IDE Another alternativ is to set the environment variable LIB so that it includes the ...objecta\apilib directory and then add -ll advapi32.lib to the adabuild command. >I am using ObjectAda 7.1.1 on Windows NT 4.0. I am trying to access the >registry, but I am coming across link errors which I have not been able to >fix. Something obvious, I expect, but just not to me! This was based on code > >registry_server.obj : error LNK2001: unresolved external symbol _RegOpenKey@12 > >What am I doing wrong? > >Cheers in advance, >czgrr >