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.3 required=5.0 tests=BAYES_00,HK_RANDOM_FROM, INVALID_MSGID,MSGID_RANDY 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: czgrr Subject: Re: Importing calls to access Windows registry Date: 1999/05/11 Message-ID: <7h8sil$l9i$1@nnrp1.deja.com>#1/1 X-Deja-AN: 476504207 References: <7gulm9$20b$1@nnrp1.deja.com> X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 193.192.234.4 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Tue May 11 09:17:09 1999 GMT Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT) Date: 1999-05-11T00:00:00+00:00 List-Id: Thanks to all who replied, I can now link the library in successfully. For anyone else who is interested... 1. In "Project/Settings/Link/Pass to linker" I added: c:\progra~2\aonix\objectada\apilib\advapi32.lib (it didn't like "Program Files" in the path, even with quotes) 2. In the source file I added: PRAGMA Linker_Options ( "-defaultlib:advapi32" ) ; 3. For the specification of RegOpenKey, the import statement was changed to: PRAGMA IMPORT ( STDCALL, RegOpenKey, "RegOpenKeyA" ) ; TTFN, czgrr -- No email, please - reply to the newsgroup. Email may be made public. My opinions are not necessarily those of my employer. My suggestions might not be correct. Use at your own risk. --== Sent via Deja.com http://www.deja.com/ ==-- ---Share what you know. Learn what you don't.---