October 30, 2025, 10:49:52 AM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


HELP! - Trying to ranslate from Delphi.

Started by Egil, April 03, 2009, 01:04:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Egil

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" ?
Support Amateur Radio  -  Have a ham  for dinner!

Ionic Wind Support Team

Cardinal is currently an unsigned integer (UINT) in Delphi.
Ionic Wind Support Team

Ionic Wind Support Team

Ionic Wind Support Team

Egil

Support Amateur Radio  -  Have a ham  for dinner!