Re: [go-nuts] look for a example: call a DLL's function on Windows by CGO

2017-08-03 Thread Konstantin Khomoutov
Hi! Unfortunately you forgot to use the "reply to all" or "reply to list" action so the message has only been sent to me, not to the list. Please re-send/re-post correctly. On Thu, Aug 03, 2017 at 07:33:03PM +0800, Fino Meng wrote: >>> yesterday I just found that, the syscall way to use DLL on W

Re: [go-nuts] look for a example: call a DLL's function on Windows by CGO

2017-08-03 Thread Konstantin Khomoutov
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

[go-nuts] look for a example: call a DLL's function on Windows by CGO

2017-08-02 Thread Fino
yesterday I just found that, the syscall way to use DLL on Windows cannot use float32&float64 as parameters, 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, th