On Wed, Aug 02, 2017 at 08:33:53PM -0700, Fino wrote: > yesterday I just found that, the syscall way to use DLL on Windows cannot > use float32&float64 as parameters,
Could you please elaborate on that as I do not beleive this is not possible: IIRC Go's float types follow IEEE 754 semantics and you should be able to use them "as is". If not, maybe it would be possible to use the Float64bits, Float64FromBits from the math package (for doubles) and their 32-bit counterparts (for floats). > so I am look for a example: call a DLL's function on Windows in the CGO > way, > > the DLL is not Windows' own DLL, but a third-party DLL which have a lot of > double&float parameters, I would do this only as a last resort: you'd need a working C compiler to build your package (and that wouldn't be MSVC++, IIRC). -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.