Page 1 of 1
passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 8:52 am
by Thierry
Hi,
I'm coding a C++ external with:
MacOS Mojave, LC 9.6.0, Xcode 11.3.1
Passing hex value to a function() of the external ( .bundle),
0x0A is transformed to 0,
0x0B to 1,
0x3E to 48,...
in LC:
get test( 0x09, 0x0A, 0x0B )
in lcidl:
function test
in v0 as integer
in v1 as integer
in v2 as integer
return boolean
in Xcode:

- Xcode debugger
- sunnYscrrenshot 2020-08-14 à 09.19.17.jpg (14.23 KiB) Viewed 2659 times

- Xcode debugger
So, I get a wrong value at fetch_int(...).
get test( 10, 11, 12) // works as expected.
Any thoughts?
Thierry
Re: passing hex value to external
Posted: Fri Aug 14, 2020 10:22 am
by sphere
I did something in the past with sending HEX to a Touchscreen, which worked OK.
I don't have it with me right now. But i can post it later.
Anyway, can you clearify what your are actaully asking? Because only the question "any thoughts?" does not ring a bell. I have many thoughts during the day.
So let us know what you exactly mean

Re: passing hex value to external
Posted: Fri Aug 14, 2020 10:28 am
by Thierry
sphere wrote: ↑Fri Aug 14, 2020 10:22 am
I did something in the past with sending HEX to a Touchscreen, which worked OK.
I did too and I was used to get right values.
Because only the question "any thoughts?" does not ring a bell.
Sorry, if this was not clear; I guess the word 'external' was too wild...
In the OP context, it's all about passing hex value to a C++ external,
using the lcidlc compiler.
fetch_int() is a function from LiveCode, and it doesn't give the right value;
nothing more to say really, as long as one know how to build an external...
and the screenshots show clearly the problem I'm facing.
Regards,
Thierry
Re: passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 12:09 pm
by bn
Hi Thierry,
maybe you can also post to
https://gitter.im/LiveCode/Lobby
e.g. Monte, Trevor, and Paul McClernan visit Gitter regularly.
Kind regards
Bernd
Re: passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 12:55 pm
by sphere
Sorry, can't be of any help there i guess.
Re: passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 1:03 pm
by Thierry
sphere wrote: ↑Fri Aug 14, 2020 12:55 pm
Sorry, can't be of any help there i guess.
No problem, and thank you

Re: passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 1:05 pm
by Thierry
bn wrote: ↑Fri Aug 14, 2020 12:09 pm
Hi Thierry,
maybe you can also post to
https://gitter.im/LiveCode/Lobby
e.g. Monte, Trevor, and Paul McClernan visit Gitter regularly.
Kind regards
Bernd
Vielen Dank, Bernd,
Didn't know about this one; I'll give a try....
I did post here, as I guess edinbourgh's Gods are watching...
Thierry
Re: passing hex value to an external.bundle
Posted: Fri Aug 14, 2020 1:48 pm
by bn
Thierry wrote: ↑Fri Aug 14, 2020 1:05 pm
I did post here, as I guess edinbourgh's Gods are watching...
The Edinburgh Gods are busy. As all real Gods are.
Kind regards
Bernd