[Gambas-user] Working with .so library

Cedron Dawg cedron at exede.net
Wed Jun 26 04:06:08 CEST 2019

I'm not that familiar with using different character sets which is why I haven't answered.  I have to say you are giving off somewhat of a petulant vibe.

One of the techniques I have used is a Alloc with plenty of space to spare.  In most cases, the function call like yours also has an argument for the maximum number of bytes the function will return, so you can usually use that for the minimum size.  Then you can use the Sting@ function to pull the string value out of the allocated memory.  Then you use the Free function to release the allocated memory.

For fixed length strings in a structure, I have used a Byte array of the specified size and then the .ToString() method to get the string out of that.

I've only really dealt with pure ASCII strings, but I think UTF-8 will also work with these.


----- Original Message -----
From: "Admin" <admin at allunix.ru>
To: "user" <user at lists.gambas-basic.org>
Sent: Tuesday, June 25, 2019 9:13:27 PM
Subject: Re: [Gambas-user] Working with .so library

So, I guess that's a no. It's kinda sad, but ok, minor issue.

More information about the User mailing list