FAQ
How do you use Syscall to call a Windows DLL function that has floats as parameters?

I tried using syscall.Syscall(..., uintptr(math.Float32frombits(x)), ...) but that didn't work.

Could anyone provide a working example?

Regards,
Daniel

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedAug 11, '15 at 12:35p
activeAug 11, '15 at 12:35p
posts1
users1
websitegolang.org

1 user in discussion

Daniel Johansson: 1 post

People

Translate

site design / logo © 2022 Grokbase