Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
437 views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...