IonicWind Software

IWBasic => General Questions => Topic started by: Egil on April 03, 2009, 01:04:50 PM

Title: HELP! - Trying to ranslate from Delphi.
Post by: Egil on April 03, 2009, 01:04:50 PM
I am trying to make an EB include file for the DLL int the Elektor Magazine serial port driver: http://www.ionicwind.com/forums/index.php/topic,3253.0.html
The example given is coded in Delphi, which is totally unknown to me. But I hope anyone here have Delphi experience and can answer my questions.
The functions found like this:

function COMPortExists (port : integer):integer;stdcall;
function BaudRateSet (baud:cardinal):Boolean;stdcall;

Will it be correct to "translate" the first declaration into EB-code like this: DECLARE IMPORT COMPortExists(int port), int
What is the EB equivalent to the Delphi variable type "cardinal"?
Is "Boolean" the equivalent to EB's "char" ?
Title: Re: HELP! - Trying to ranslate from Delphi.
Post by: Ionic Wind Support Team on April 03, 2009, 06:59:09 PM
Cardinal is currently an unsigned integer (UINT) in Delphi.
Title: Re: HELP! - Trying to ranslate from Delphi.
Post by: Ionic Wind Support Team on April 03, 2009, 06:59:27 PM
Boolean = INT as well.
Title: Re: HELP! - Trying to ranslate from Delphi.
Post by: Egil on April 04, 2009, 01:49:05 AM
Thanks Paul!