IonicWind Software

IWBasic => General Questions => Topic started by: Techno on November 09, 2013, 05:48:09 AM

Title: Declarations for the RSAPI.dll
Post by: Techno on November 09, 2013, 05:48:09 AM
Larry,

I have checked the invoices and rewritten to use in IWBasic Compilers. If there are mistakes you can definitely improve them.

I am convinced that here users and programmers to write applications for interfacing with the hardware and electronics

I send this attachment in the include files, and library files

This attachtment file include : rsapi.dll, port.dll, rs2com.dll, rscom.dll, inpout32.dll etc...

Yours sincerely
Stephane
Title: Re: Declarations for the RSAPI.dll
Post by: LarryMc on November 09, 2013, 05:59:00 AM
Most of your definitions don't have a space between the alias name and the word ALIAS; do they still work?
Also, there is absolutely no reason to alias a function if both the alias name and real name as exactly the same
these names are the same: DTR Alias DTR
these names are different: dtr Alias DTR

You have BYVAL all over the place.
Strings and UDT's are normally passed by reference in IWBasic and everything else is passed by value.
So, in your declarations you only need BYVAL where you are passing strings.
Title: Re: Declarations for the RSAPI.dll
Post by: Techno on November 09, 2013, 12:00:48 PM
Quote from: LarryMc on November 09, 2013, 05:59:00 AM
Most of your definitions don't have a space between the alias name and the word ALIAS; do they still work?
Also, there is absolutely no reason to alias a function if both the alias name and real name as exactly the same
these names are the same: DTR Alias DTR
these names are different: dtr Alias DTR

You have BYVAL all over the place.
Strings and UDT's are normally passed by reference in IWBasic and everything else is passed by value.
So, in your declarations you only need BYVAL where you are passing strings.

Larry

Thanks for you remarks

I have any questions:

1)
Is that the same
DECLARE IMPORT, SendString   ALIAS SENDSTRING(strData AS STRING), INT
such as this
DECLARE IMPORT, SendString   ALIAS SENDSTRING(BYREF strData AS STRING), INT


2) Is that the same?

DECLARE IMPORT, SendString   ALIAS SENDSTRING(strData AS STRING), INT
such as this
DECLARE IMPORT, SENDSTRING(BYREF strData AS STRING), INT


Kind regards
Stephane

Title: Re: Declarations for the RSAPI.dll
Post by: LarryMc on November 09, 2013, 01:52:52 PM
#1 are saying the same thing.

#2 are not the same
Calling functions in an external lib are case sensitive.
If you don't use the ALIAS you will always have to call the function with all caps as in
int x= SENDSTRING(mystr)
or exactly the way it is spelled(including caps) in the external lib.
Title: Re: Declarations for the RSAPI.dll
Post by: Techno on November 09, 2013, 02:18:53 PM
Quote from: LarryMc on November 09, 2013, 01:52:52 PM
#1 are saying the same thing.

#2 are not the same
Calling functions in an external lib are case sensitive.
If you don't use the ALIAS you will always have to call the function with all caps as in
int x= SENDSTRING(mystr)
or exactly the way it is spelled(including caps) in the external lib.

Thanks Larry
Title: Re: Declarations for the RSAPI.dll
Post by: Bill-Bo on November 10, 2013, 08:25:19 AM
Techno,

QuoteI have checked the invoices and rewritten to use in IWBasic Compilers.

I see nothing from yesterday, or today, about invoices or compilers other than your
edited post, which you deleted the code. What are the lib's and inc's all about?

Bill
Title: Re: Declarations for the RSAPI.dll
Post by: LarryMc on November 10, 2013, 11:49:53 AM
Quote from: Bill-Bo on November 10, 2013, 08:25:19 AM
Techno,

QuoteI have checked the invoices and rewritten to use in IWBasic Compilers.

I see nothing from yesterday, or today, about invoices or compilers other than your
edited post, which you deleted the code. What are the lib's and inc's all about?

Bill
I think he used the word "invoices" where he meant "includes"
He's saying he rewrote the include files for said dll's(like what Sapero did with his windowssdk.inc) so they can be used with IWBasic.
The zip has the inc files, the dlls, and the lib files he created for the libs.
Title: Re: Declarations for the RSAPI.dll
Post by: King64 on November 14, 2013, 10:07:47 AM
Hi Techno, which .dll refers to memacc.inc? I don't find any with those functions. Regards :)





Title: Re: Declarations for the RSAPI.dll
Post by: LarryMc on November 14, 2013, 10:32:34 AM
Quote from: King64 on November 14, 2013, 10:07:47 AM
Hi Techno, which .dll refers to memacc.inc? I don't find any with those functions. Regards :)
Appears to refer to a commercial product:
QuoteMemAccess Library 1.4 Evaluation Version
Copyright (c) 1997-2006 Hai Li, Zeal SoftStudio.
E-mail: info@zealsoft.com
Homepage: http://www.zealsoft.com/
Date: July 20, 2006
Title: Re: Declarations for the RSAPI.dll
Post by: King64 on November 14, 2013, 11:55:49 AM
Thanks Larry  ;)