Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : C Header Conversion Help

www.cryer.info
Managed Newsgroup Archive

C Header Conversion Help

Subject:C Header Conversion Help
Posted by:"Darryl Strickland" (stricd..@gmail.com)
Date:Mon, 25 Feb 2008 14:26:58

Sorry for the cross post but after placing it in the other forum
(borland.public.delphi.rtl.win32) it looked like it belonged here.


I have a C header which I need to use directly in Delphi.  I have used Dr.
Bobs converter utility to get me started but I need help on the items below.

C Header

DWORD CWC_WINAPI CWC_DeleteAllFiles(DWORD handle, unsigned char
adminPin[8]);
DWORD CWC_WINAPI CWC_GetCardSerialNumber(DWORD handle, unsigned char
serialNumber[8]);
DWORD CWC_WINAPI CWC_GetLastErrorMessage(char msg[255]);


Delphi Conversion
  CWC_DeleteAllFiles: function(handle: LongInt;
                               adminPin[8]: Byte): LongInt stdcall ;


  CWC_GetCardSerialNumber: function(handle: LongInt;
                                    serialNumber[8]: Byte): LongInt stdcall
;


  CWC_GetLastErrorMessage: function(msg[255]: Char): LongInt stdcall ;


Thanks for any help.
Darryl

Replies:

www.cryer.info
Managed Newsgroup Archive