From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: import errors
Date: 09 Mar 2004 21:18:28 -0500
Date: 2004-03-09T21:18:28-05:00 [thread overview]
Message-ID: <mailman.84.1078885138.327.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <c2frbi$ac$1@nemesis.news.tpi.pl>
Szymon Guz <guzo@stud.ics.p.lodz.pl> writes:
> Hi,
> I'm trying to make a binding to a dll library written in C++ and I'va
> got a problem. I have two types in one package and two procedures that
> are named the same:
>
> type A;
> type B is new A;
>
> procedure A(this:A_Access);
> procedure A(this:B_Access);
>
> and now I want to import them from the dll library, but writing sth
> like this:
>
> pragma Import(C,A,"AAA");
> pragma Import(C,A,"BBB");
>
> generates some compiler errors,
One solution to this is to use a renames:
procedure AAA (This : A_Access);
pragma Import (C, AAA, "AAA");
procedure A (This : A_Access) renames AAA;
similarly for the other A.
--
-- Stephe
prev parent reply other threads:[~2004-03-10 2:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-07 18:55 import errors Szymon Guz
2004-03-07 19:10 ` Jeff C,
2004-03-07 20:07 ` Szymon Guz
2004-03-10 2:18 ` Stephen Leake [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox