comp.lang.ada
 help / color / mirror / Atom feed
* Importing calls to access Windows registry
@ 1999-05-07  0:00 czgrr
  1999-05-07  0:00 ` Tom Moran
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: czgrr @ 1999-05-07  0:00 UTC (permalink / 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    




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1999-05-11  0:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-05-07  0:00 Importing calls to access Windows registry czgrr
1999-05-07  0:00 ` Tom Moran
1999-05-07  0:00   ` dennison
1999-05-07  0:00 ` Sune Falck
1999-05-11  0:00 ` czgrr

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