comp.lang.ada
 help / color / mirror / Atom feed
* Help on import a dll in ada, thx ^_^
@ 2003-01-20 10:49 Sim Con
  2003-01-20 11:52 ` David C. Hoos, Sr.
  0 siblings, 1 reply; 3+ messages in thread
From: Sim Con @ 2003-01-20 10:49 UTC (permalink / raw)


Hello! I have this problem: i'd like to use a dll of mine in ada, but i
don't know the right procedure. I make a .ads with the bindings
(example:

package DLCBIND is

  pragma LINKER_OPTIONS ("-ldlcman");

  function INITIALIZE (
        MACADDRESS : INTERFACES.C.CHAR_ARRAY; 
        REMOTESAP  : INTERFACES.C.INT;        
        LOCALSAP   : INTERFACES.C.INT         ) 
    return INTERFACES.C.INT; 
  pragma IMPORT(STDCALL,INITIALIZE,"initialize");
...

)

where dlcman is the name of the .dll and .lib (in the same directory of
the sources .ads and the .adb test file) and the initialize function is
one exported by the dll (build in vc++). All compile fine but the test
adb file in which i call the functions, i receive an undefined reference
to initialiaze. Any help? thanx in advance ^_^


-- 
Posted via Mailgate.ORG Server - http://www.Mailgate.ORG



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

end of thread, other threads:[~2003-01-22 14:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-20 10:49 Help on import a dll in ada, thx ^_^ Sim Con
2003-01-20 11:52 ` David C. Hoos, Sr.
2003-01-22 14:43   ` Sim Con

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