Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译失败 #17

Open
workyu opened this issue Mar 2, 2021 · 3 comments · May be fixed by #18
Open

编译失败 #17

workyu opened this issue Mar 2, 2021 · 3 comments · May be fixed by #18

Comments

@workyu
Copy link

workyu commented Mar 2, 2021

......\github.com\boombuler\hid\hid_windows.go:74:164: cannot use _cgo1 (type unsafe.Pointer) as type _Ctype_PVOID in argument to _Cfunc_HidD_SetFeature

@liugangnhm
Copy link

same issue

@Bonehead5338
Copy link

+1

@Bonehead5338
Copy link

Bonehead5338 commented Mar 9, 2021

Line 74: if C.HidD_SetFeature(d.h(), C.PVOID(&buffer[0]), C.DWORD(len(buffer))) != 0 {

changing unsafe.Pointer to C.PVOID compiles ok, will test library with this and open a PR

@Bonehead5338 Bonehead5338 linked a pull request Mar 9, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants