May 09, 2024, 12:29:18 PM

News:

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


Declarations for the RSAPI.dll

Started by Techno, November 09, 2013, 05:48:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Techno

November 09, 2013, 05:48:09 AM Last Edit: November 09, 2013, 02:29:48 PM by Techno
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

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Techno

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


LarryMc

#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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

Techno

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

Bill-Bo

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

LarryMc

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.
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library

King64

Hi Techno, which .dll refers to memacc.inc? I don't find any with those functions. Regards :)






LarryMc

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
LarryMc
Larry McCaughn :)
Author of IWB+, Custom Button Designer library, Custom Chart Designer library, Snippet Manager, IWGrid control library, LM_Image control library