From: ich_bin_elvis@hotmail.com
Subject: Re: combine Ada with MS VS C++
Date: 12 Apr 2005 07:38:35 -0700
Date: 2005-04-12T07:38:35-07:00 [thread overview]
Message-ID: <1113316715.459275.24700@g14g2000cwa.googlegroups.com> (raw)
In-Reply-To: <1113301098.698761.56360@o13g2000cwo.googlegroups.com>
Hi, After some testing we found out that the problem was that in our
C++ program we had an struct described below.
typedef struct tagpoint
{
double x;
double y;
} point;
and Angle is prototyped like
extern "C" double Angle(double x1, double y1, double x2, double y2);
We used it like this:
double vinkel1;
point p0,p1,p2,p3;
and we sendt the parameters to Angle in the form of.
vinkel1 = Angle(p0.x, p0.y, p3.x, p3.y);
we found out that we need to create temorary variabels and send them
instead is this realy neccesary? In Ada we uses Interfaces.C.double to
recive the parameters and return the ange. Any comment on this is
apreciated.
Regards
Ronny
next prev parent reply other threads:[~2005-04-12 14:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-16 13:04 combine Ada with MS VS C++ ich_bin_elvis
2005-03-16 14:18 ` Larry Kilgallen
2005-03-16 14:53 ` ich_bin_elvis
2005-03-16 16:42 ` Martin Krischik
2005-04-12 10:18 ` ich_bin_elvis
2005-04-12 14:38 ` ich_bin_elvis [this message]
2005-03-16 21:44 ` Ludovic Brenta
2005-03-16 22:18 ` Randy Brukardt
2005-03-17 3:32 ` David Botton
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox