Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" Subject: Generating C/C++ headers from DLL or pascal information Date: Sat, 22 Feb 2003 11:21:36 -0500 Lines: 18 Message-ID: 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/