comp.lang.ada
 help / color / mirror / Atom feed
* Interfacing with C
@ 2009-05-18 11:29 cedric
  2009-05-18 11:51 ` Maciej Sobczak
  2009-05-18 11:58 ` Dmitry A. Kazakov
  0 siblings, 2 replies; 13+ messages in thread
From: cedric @ 2009-05-18 11:29 UTC (permalink / raw)


Hi All,

I would like to connect a C interface to another software package with
my Ada programs.

The h-file of the api contains the following pre-processor commands:

#ifdef SPSSXD_EXPORTS
# define SPSSXD_API __declspec(dllexport)
#else
# if MS_WINDOWS
#   define SPSSXD_API __declspec(dllimport)
# else
#   define SPSSXD_API
# endif
#endif


Some functions headers are

SPSSXD_API bool IsBackendReady();
SPSSXD_API int SetUpFromSPSS(SpssAdapter* anAdapter, SpssXDSmb*
anSmb);

What do I have to do to get a connection between the C functions and
my Ada program with regard to the commands of the pre-processor?

Regards

Cedric



^ permalink raw reply	[flat|nested] 13+ messages in thread
[parent not found: <7rtlav$bm7$1@nnrp1.deja.com>]

end of thread, other threads:[~2009-06-01  8:24 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <vhiln6cllz7.fsf@grotte.ifi.uio.no>
1999-12-30  0:00 ` Interfacing with C Simon Wright
1999-12-31  0:00 ` Jerry van Dijk
1999-12-31  0:00   ` Simon Wright
2009-05-18 11:29 cedric
2009-05-18 11:51 ` Maciej Sobczak
2009-05-18 11:58 ` Dmitry A. Kazakov
2009-05-18 12:11   ` Ludovic Brenta
2009-05-18 12:13     ` Ludovic Brenta
2009-06-01  8:24   ` David Thompson
     [not found] <7rtlav$bm7$1@nnrp1.deja.com>
     [not found] ` <37e2b0e7.0@news.pacifier.com>
1999-09-22  0:00   ` Richard D Riehle
1999-09-22  0:00     ` Ted Dennison
1999-09-22  0:00       ` David Botton
1999-09-23  0:00     ` Robert Dewar

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