passing hex value to an external.bundle
Moderator: Klaus
passing hex value to an external.bundle
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:
So, I get a wrong value at fetch_int(...).
get test( 10, 11, 12) // works as expected.
Any thoughts?
Thierry
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:
So, I get a wrong value at fetch_int(...).
get test( 10, 11, 12) // works as expected.
Any thoughts?
Thierry
Last edited by Thierry on Fri Aug 14, 2020 11:44 am, edited 2 times in total.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: passing hex value to external
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
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
I did too and I was used to get right values.
Sorry, if this was not clear; I guess the word 'external' was too wild...Because only the question "any thoughts?" does not ring a bell.
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
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: passing hex value to an external.bundle
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
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
Sorry, can't be of any help there i guess.
Re: passing hex value to an external.bundle
No problem, and thank you

!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: passing hex value to an external.bundle
Vielen Dank, Bernd,bn wrote: ↑Fri Aug 14, 2020 12:09 pmHi 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
Didn't know about this one; I'll give a try....
I did post here, as I guess edinbourgh's Gods are watching...
Thierry
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
SUNNY-TDZ.COM doesn't belong to me since 2021.
To contact me, use the Private messages. Merci.
!
Re: passing hex value to an external.bundle
The Edinburgh Gods are busy. As all real Gods are.
Theodicy: It is to answer the question of why a good God permits the manifestation of evil, thus resolving the issue of the problem of evil.
(https://en.wikipedia.org/wiki/Theodicy)

Kind regards
Bernd