October 29, 2025, 10:18:26 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Converting variable types from Delphi into Emergence Basic.

Started by Egil, May 12, 2008, 07:21:34 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Egil

It was with great interrest I read the postings by Barney, where he explained how to use Elektor Magazine 's Port.DLL with Emergence Basic. But when I tried to get more information from the magazine user forum on where to find the file Port.DLL, I saw that the editor didn't recomend it used with newer systems than Windows 98. But they have made another DLL that's more suitable for newer systems, named Serial.DLL. I downloaded that file togheter with example code written in Deplhi. And now I'm studying the example, finding that it is rather easy to understand, at least easier than I thought....

But then I found three variable types (Delphi) that was not so obvious at first glance: Boolean, Cardinal and HWND.
Guess I'll get away with Boolean by defining it as an INT. But I hope somebody can tell me how the two last types should be defined in EB.

Support Amateur Radio  -  Have a ham  for dinner!

ts-soft

Sorry for my bad english

Barney

Cardinal is the same as EBasic's UINT.

More about Delphi variables here.

Barney

Egil

Thanks to both of you!
After a little more study, I decided to put that project aside for a while, at least till I'm more confident with EB.
And the comport example that came with EB, will do it for me... with minor modifications.
Support Amateur Radio  -  Have a ham  for dinner!