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

你是用什么GO什么版本的 我这抱一堆错误 #5

Open
leisure520 opened this issue Mar 17, 2017 · 3 comments
Open

你是用什么GO什么版本的 我这抱一堆错误 #5

leisure520 opened this issue Mar 17, 2017 · 3 comments

Comments

@leisure520
Copy link

leisure520 commented Mar 17, 2017

panic: Failed to load XCGUI.dll: %1 is not a valid Win32 application.

goroutine 1 [running, locked to thread]:
syscall.MustLoadDLL(0x770af7, 0x9, 0x45b301)
C:/Go/src/syscall/dll_windows.go:77 +0x73
github.com/codyguo/xcgui/xc.init.1()
C:/Go/src/github.com/codyguo/xcgui/xc/aapi.go:79 +0xf1
github.com/codyguo/xcgui/xc.init()
C:/Go/src/github.com/codyguo/xcgui/xc/xwm.go:457 +0x81
main.init()
C:/Go/src/github.com/codyguo/xcgui/examples/comboBox/comboBox.go:31 +0x50

win7
好像是DLL的调用出错,是不是GO1.8后出现新的DLL方式去调用?

@CodyGuo
Copy link
Owner

CodyGuo commented Mar 17, 2017

这dll只支持32位的。
友情提醒:64位编译环境下需要设置 set GOARCH=386。

@sndnvaps
Copy link

用32位的 go就可以了。

@zhongxiaole
Copy link

我设置GOARCH=386 但是还是会出现一楼提的问题,这是我的GO版本问题吗,还是DLL又有更新的问题

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

No branches or pull requests

4 participants