comp.lang.ada
 help / color / mirror / Atom feed
* Ada equivalent to С++ header sentence.
@ 2004-08-20  8:22 Johnswort
  2004-08-20 11:17 ` Jeff C,
  2004-08-20 12:37 ` Stephen Leake
  0 siblings, 2 replies; 6+ messages in thread
From: Johnswort @ 2004-08-20  8:22 UTC (permalink / 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.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-08-24  3:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-20  8:22 Ada equivalent to С++ header sentence Johnswort
2004-08-20 11:17 ` 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

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