It looks like GetString() is missing a 'Return ReturnString'?
Currently it will return Null by default and s$=String.FromCString( GetString() ) will crash and burn...
Apart from that, it should work.
Currently it will return Null by default and s$=String.FromCString( GetString() ) will crash and burn...
Apart from that, it should work.