Ada equivalent to С++ header sentence.

From: Johnswort (rhezusfactor_at_yahoo.com)
Date: 08/20/04


Date: 20 Aug 2004 01:22:49 -0700

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.



Relevant Pages

  • Handling MP3 Files
    ... but any help givin in C/C++ or Perl will do. ... So I'm writing something to read mp3 files and extract information like ... Is this the right way to determine the validity of a header? ...
    (comp.programming)
  • OFFSET Formula Trouble
    ... Don't ask me why I can't just grab the data I need, ... There are nine store numbers, ... there is just 1 row containing this header. ... The formula I am using is correctly calling the 9 columns I need, ...
    (microsoft.public.excel.misc)
  • Re: OFFSET Formula Trouble
    ... Don't ask me why I can't just grab the data I need, ... > "header" for a list of store numbers like so... ... there is just 1 row containing this header. ... > The formula I am using is correctly calling the 9 columns I need, ...
    (microsoft.public.excel.misc)
  • Re: TECH: Rollergames Magnet Problem
    ... to grab the ball. ... Reflowed the header pins on the under playfield driver board ... Reflowed the special solenoid header pins on the cpu board ...
    (rec.games.pinball)
  • Re: linecache and glob
    ... i need to get the date information from the header ... then insert it into my database ... if the files are small, and you want to keep the code short, it's easier to just grab the file's content and using indexing on the resulting list: ... (note that line numbers usually start with 1, but Python's list indexing starts at 0). ...
    (comp.lang.python)