delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/22/14:21:52

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: "Wil Hunt" <wilh AT gladstone DOT uoregon DOT edu>
Subject: Generating C/C++ headers from DLL or pascal information
Date: Sat, 22 Feb 2003 11:21:36 -0500
Lines: 18
Message-ID: <b38ido$hk5$1@main.gmane.org>
X-Complaints-To: usenet AT main DOT gmane DOT org
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

I need to link against a DLL created using Borland's Delphi pascall product.
I have been provided the DLL and the pascal signatures, but I'm not sure how
to translate pascal signatures into C/C++.

I have used impdef/dlltool to generate a library file for the DLL against
which I can link, however I still need the C/C++ header files with function
prototypes and the like.

Can this be generated from the library I created?  If not, where can I find
a reliable mapping for Delphi signatures -> C/C++ signatures?  For example,
I think PChar is char *, but what is boolean?  Are variable procedure
parameters just pointers to the respective data types?

Any assistance would be greatly appreciated.

Wil




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019