[Gambas-user] External C function usage error - IPC queue usage

T Lee Davidson t.lee.davidson at gmail.com
Mon Jan 22 22:34:44 CET 2018


"Public MSGPERM As Integer = 0600"

"0600" in Gambas is the decimal number 600, not an octal number. I have searched and searched, and found no way to conveniently
represent an octal number in Gambas. http://gambaswiki.org/wiki/cat/constants lists hexadecimal and binary.

Try:
Public MSGPERM As Integer = (8 ^ 2 * 6) + (8 ^ 1 * 0) + (8 ^ 0 * 0)
Or:
Public MSGPERM As Integer = &X110000000
Or:
Public MSGPERM As Integer = 384


-- 
Lee


On 01/22/2018 01:41 PM, Yahoo via User wrote:
> I try to manipulate the 'IPC queue' over gambas using 'msgsnd(...)' function but after hours I'm not able to pass it the
> necessary parameters.
> 


More information about the User mailing list