From: czgrr <czgrr@my-dejanews.com>
Subject: Importing calls to access Windows registry
Date: 1999/05/07
Date: 1999-05-07T00:00:00+00:00 [thread overview]
Message-ID: <7gulm9$20b$1@nnrp1.deja.com> (raw)
Hello everybody, my turn to ask a question.
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
from a Windows 95 application in ActivAda (83) which works.
I only have Ada83 experience, so please let me know if anything you might
provide in a solution is only available in Ada95, or only in ObjectAda AFAYK.
I am doing this for one of a few functions I want...
TYPE windows_integer_type IS RANGE -2**31 .. ( 2**31 - 1 ) ;
FOR windows_integer_type'SIZE USE 32 ;
TYPE string_pointer_type IS ACCESS STRING ;
TYPE string_pointer_pointer_type IS ACCESS string_pointer_type ;
FUNCTION RegOpenKey
( key : SYSTEM.ADDRESS ; -- IN
subkey : STRING ; -- IN
key_address : string_pointer_pointer_type ) -- OUT
RETURN windows_integer_type ;
PRAGMA IMPORT ( WIN32, RegOpenKey ) ;
but I get the following link error...
registry_server.obj : error LNK2001: unresolved external symbol _RegOpenKey@12
What am I doing wrong?
Cheers in advance,
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.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
next 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 czgrr [this message]
1999-05-07 0:00 ` Importing calls to access Windows registry Sune Falck
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