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

How to run examples? #62

Closed
cyrusdavid opened this issue Jul 26, 2013 · 1 comment
Closed

How to run examples? #62

cyrusdavid opened this issue Jul 26, 2013 · 1 comment

Comments

@cyrusdavid
Copy link

go run notifyicon.go
2013/07/26 16:39:19 TTM_ADDTOOL failed

Stack:
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/error.go:79 (0x42ba2f)
        com/lxn/walk.newErr: return &Error{message: message, stack: debug.Stack()}
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/error.go:83 (0x42bb22)
        com/lxn/walk.newError: return processError(newErr(message))
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/tooltip.go:115 (0x43ea31)
        com/lxn/walk.(*ToolTip).AddTool: return newError("TTM_ADDTOOL failed")
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/widget.go:110 (0x44229d)
        com/lxn/walk.(*WidgetBase).init: if err := globalToolTip.AddTool(wb); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/window.go:386 (0x4447e0)
        com/lxn/walk.InitWindow: if err := wb.init(widget); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/widget.go:86 (0x442057)
        com/lxn/walk.InitWidget: if err := InitWindow(widget, parent, className, style|win.WS_CHILD, exStyle); err != ni
l {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/composite.go:32 (0x428b8e)
        com/lxn/walk.newCompositeWithStyle: win.WS_EX_CONTROLPARENT); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/composite.go:40 (0x428cdb)
        com/lxn/walk.NewComposite: return newCompositeWithStyle(parent, 0)
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/form.go:81 (0x42ce66)
        com/lxn/walk.(*FormBase).init: if fb.clientComposite, err = NewComposite(form); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/window.go:402 (0x444924)
        com/lxn/walk.InitWindow: if err := fb.init(form); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/mainwindow.go:37 (0x4302cc)
        com/lxn/walk.NewMainWindow: win.WS_EX_CONTROLPARENT); err != nil {
d:/Users/Cyrus/gofiles/src/github.com/lxn/walk/examples/notifyicon/notifyicon.go:18 (0x40102a)
        main: mw, err := walk.NewMainWindow()
C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist417694871/go/src/pkg/runtime/proc.c:182 (0x4148e9)
C:/Users/ADMINI~1/AppData/Local/Temp/2/bindist417694871/go/src/pkg/runtime/proc.c:1223 (0x416a40)
exit status 1
@lxn
Copy link
Owner

lxn commented Jul 26, 2013

go run notifyicon.go doesn't work, because there has to be an application manifest file next to the executable, that matches its name. go run seem to generate a randomly named executable.

Please try go build in the notifyicon directory instead.

@lxn lxn closed this as completed Oct 27, 2013
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

2 participants