comp.lang.ada
 help / color / mirror / Atom feed
From: Sune.S.Falck@telia.se (Sune Falck)
Subject: Re: Importing calls to access Windows registry
Date: 1999/05/07
Date: 1999-05-07T00:00:00+00:00	[thread overview]
Message-ID: <FBD5M7.n48@malmo.trab.se> (raw)
In-Reply-To: 7gulm9$20b$1@nnrp1.deja.com

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
>




  reply	other threads:[~1999-05-07  0:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-05-07  0:00 Importing calls to access Windows registry czgrr
1999-05-07  0:00 ` Sune Falck [this message]
1999-05-07  0:00 ` Tom Moran
1999-05-07  0:00   ` dennison
1999-05-11  0:00 ` czgrr
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox