I have a DLL that I need use its functions in Go.
var verifone = syscall.NewLazyDLL("ext/dllTpvpcLatente.dll")
var fnDllOperTotales = verifone.NewProc("fnDllOperTotales")
var fecha = ""
var desgloseVM = "N"
var desgloseMarcas = "N"
var XMLResp = new(string)
var iTamMaxResp = new(uint32)
err,_,_ := fnDllOperTotales.Call(
uintptr(unsafe.Pointer(syscall.StringBytePtr(fecha))),
uintptr(unsafe.Pointer(syscall.StringBytePtr(desgloseVM))),
uintptr(unsafe.Pointer(syscall.StringBytePtr(desgloseMarcas))),
uintptr(unsafe.Pointer(XMLResp)),
uintptr(unsafe.Pointer(iTamMaxResp)))
fmt.Printf("%v
",XMLResp)
I have that and I need get XMLResp of function.
question from:https://stackoverflow.com/questions/66061576/get-string-as-reference-by-function-of-dll