comp.lang.ada
 help / color / mirror / Atom feed
From: "Sim Con" <sicon@hotmail.com>
Subject: Help on import a dll in ada, thx ^_^
Date: Mon, 20 Jan 2003 10:49:35 +0000 (UTC)
Date: 2003-01-20T10:49:35+00:00	[thread overview]
Message-ID: <9e215188a6ce0808facb25c26081023a.110780@mygate.mailgate.org> (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



             reply	other threads:[~2003-01-20 10:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20 10:49 Sim Con [this message]
2003-01-20 11:52 ` Help on import a dll in ada, thx ^_^ David C. Hoos, Sr.
2003-01-22 14:43   ` Sim Con
replies disabled

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