[Gambas-user] unsigned int datatype for external function

Jussi Lahtinen jussi.lahtinen at gmail.com
Sun Jun 10 18:45:28 CEST 2018


So, it's 32bit integer. Most likely the library reads only 32 bit from the
memory, and thus "long" wont help you.

Gambas integer reserves one bit for sign and thus returned values are not
correctly displayed in Gambas side.
However you can display them correctly by using binary representation.


Jussi

On Sun, Jun 10, 2018 at 6:38 PM, Demosthenes Koptsis <demosthenesk at gmail.com
> wrote:

> hello,
>
> i want to use an unsigned int in external function, which gambas datatype
> should i use?
>
> Integer or Long?
>
> The range of values is 0 to 4,294,967,295
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180610/22f742df/attachment.html>


More information about the User mailing list