comp.lang.ada
 help / color / mirror / Atom feed
From: rhezusfactor@yahoo.com (Johnswort)
Subject: Ada equivalent to С++ header sentence.
Date: 20 Aug 2004 01:22:49 -0700
Date: 2004-08-20T01:22:49-07:00	[thread overview]
Message-ID: <3f27506b.0408200022.76094a5e@posting.google.com> (raw)

I try to make a binding on an API, which has a header in C++ syntax.
As a complete moron in both C/C++, I want to grab the last straw
before giving up. So I ask for a hint: what would be the Ada
equivalent to the following:

typedef BOOL                    (_stdcall T_hcConnect)(LPSTR lszCmd);

Presumingly, LPSTR may come from Win32. Just in case, VB header
translates it into

Declare Function hbConnect Lib "hapi.dll" Alias "hcConnect" (ByVal
command As String) As Long

Thank you in advance.

P.S. Yep, almost forgot: GNAT 3.15., Win2000 sp4. API comes from
HyperChem 6, if curious.



             reply	other threads:[~2004-08-20  8:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20  8:22 Johnswort [this message]
2004-08-20 11:17 ` Ada equivalent to &#1057;++ header sentence Jeff C,
2004-08-20 12:37 ` Stephen Leake
2004-08-20 12:53   ` Frank J. Lhota
2004-08-20 19:11   ` Johnswort
2004-08-24  3:32   ` Randy Brukardt
replies disabled

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