Open linshaoSec opened 2 years ago
I also get this building on a Mac M1.
cannot use flag (variable of type uint32) as type uintptr in argument to procRedrawWindow.Call
GOOS=windows go build main.go
# github.com/AllenDang/w32
../../../../go/pkg/mod/github.com/!allen!dang/w32@v0.0.0-20180428130237-ad0a36d80adc/user32.go:1040:3: cannot use flag (variable of type uint32) as type uintptr in argument to procRedrawWindow.Call
dang yu hang ?
dang yu hang ?
who's asking?
果然是你, 当年 honeywell 的同事,
Same issue,
i have this error due to the user32.go:1040 location ../../go/pkg/mod/github.com/!allen!dang/w32@v0.0.0-20180428130237-ad0a36d80adc/user32.go:1040:3: cannot use flag (variable of type uint32) as uintptr value in argument to procRedrawWindow.Call
The solution : change the "flag" to "uintptr(flag)" -> it works for me
When I try to compile, I get an error due to the user32.go:1039 location !The solution is modifind the "flag" to "uintptr(flag)" Finally, thank you for your code