comp.lang.ada
 help / color / mirror / Atom feed
From: "Mário Amado Alves" <maa@liacc.up.pt>
Subject: RE: C Interface
Date: Wed, 3 Apr 2002 14:40:07 +0100
Date: 2002-04-03T14:40:07+01:00	[thread overview]
Message-ID: <mailman.1017841262.9776.comp.lang.ada@ada.eu.org> (raw)
In-Reply-To: <a8enka$rns13$1@ID-79136.news.dfncis.de>

"... Now, I have tried to display the contents of Chars1 but I don't
know how. I have tried several ways but no one worked."

Convert to String and print with Ada.Text_IO.Put_Line. (There should be
a To_Ada function or similar in Interfaces.C (or its child Strings) to
convert a chars_array to String.)

"... Does someone knows if there are examples which explain the access
to the C interface functions. It would be very nice if someone can give
me references or examples."

For examples look at _bindings_ to C libraries e.g. database systems
(Postgres, MySQL), graphics (X), Windows libraires, etc. There is a lot
online. Start in AdaPower.Com as usual.

I don't know of any 'tutorial' online, but I'm sure Cohen's book
explains the issue.




  reply	other threads:[~2002-04-03 13:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 11:05 C Interface Henrik Quintel
2002-04-03 13:40 ` Mário Amado Alves [this message]
2002-04-03 15:59 ` Ted Dennison
2002-04-03 19:20   ` Henrik Quintel
2002-04-04  3:13     ` Steve Doiel
2002-04-04 13:12 ` Henrik Quintel
replies disabled

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