To Gilles- 

I don't know if it's relevant for your problem, but remember that even if a
Mapbasic logical is 1 byte in size, It will be converted to a 2-byte
variable when passed to a dll. Se "MapBasic Users Guide", chapter 11,
Section "Logical Arguments". This behaviour may have changed from version 4
to 5.

regards 

Bo Thomsen
GeoConsult I/S
Denmark




-----Oprindelig meddelelse-----
Fra: digeteca [mailto:[EMAIL PROTECTED]]
Sendt: 16. oktober 2002 15:21
Til: [EMAIL PROTECTED]
Emne: MI-L Problem encountered with ByVal as Logical in function
declaration


We used to introduce logical vaiables in function declaration by the line
hereafter:
declare function dll_routine_name lib "lib_name.dll" ( ByVal
logical_variable as logical )
This type of declaration worked well with MapBasic 4 and seems to be not
supported anymore by MapBasic 5, with an error message at compilation:
invadid or missing argument list.
Does somebody have any idea what the cause is and what the solution is?
Thanks in advance,

Gilles


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3604

---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 3606

Reply via email to