Than'x everyone for the prompt response.. I was trying the instructions as
dictated in the ug and am stumped by something else right now..
apparently.. after reading the ug.. I realize that I have done this
before.. (duh!)

Anyway, what I've never done is tried to import a CPP DLL into Ada (I
imported an Ada DLL into Ada)

I'm getting a "undefined reference" to the file I'm trying to import...
does anyone know what I did not do..

I've gotten the .def file (using dll2def) and the Exports in there is
something like

?ProcedureExportedName@@YGHXZ

I tried to import

Pragma Import (C, MyProc, "ProcedureExportedName");
and desperately also trying
Pragma Import (C, MyProc, "?Procedure ExportedName@@YGHXZ");

Both to no avail... I've tried using CPP too..

Please advise..

Than'x!




"David C. Hoos, Sr." <[log in to unmask]>      28/02/2003 08:28 PM

              To:  LIM Steven/Engr/ST Aero/ST Group@ST Domain
              cc:
              Subject: Re:      ADA using a DLL file









----- Original Message -----
From: "Steven Lim" <[log in to unmask]>
To: <[log in to unmask]>
Sent: February 27, 2003 9:52 PM
Subject: ADA using a DLL file


> Hi all,
>
> I'm wondering if someone can point me in some direction on how I can
import
> a DLL procedure into Ada.
The best direction in which I can point you is to the GNAT User's Guide
sections 25.6, 25.7, and 25.8, viz.:
25.6 Introduction to Dynamic Link Libraries (DLLs)
25.7 Using DLLs with GNAT
 25.8 Building DLLs with GNAT

>
> What is the syntax that the PRAGMA IMPORT should take?
>
> Than'x so much for everyone's time..
>
> rgds, Steven
>
>