What happens if you use a Ptr instead of a CString?
soft Declare function GetOutboundIP Lib "mydll.dll" () as Ptr
var result as MemoryBlock=GetOutboundIP()
If result <> Nil Then
system.debuglog "Return value is null"
Yeah, I know go and its pretty good at sharing load over CPU if you do it correctly, its just how does Xojo decide what it uses in place of go data types, in fact it looks more like the DLL uses C data types.
Sorry for the late reply to this. We’re using Xojo with Go and while I’m not an expert on it I know we are using CGo for the interface between the two. And IIRC it does limit what Go can do. I can ask our Go architect what the limitations are.