Removed the original exe/dll and edited some xtest.go stuff.

This commit is contained in:
Pietro Gagliardi 2015-11-25 17:20:39 -05:00
parent 554cd31fa2
commit e775c3bb6c
3 changed files with 3 additions and 2 deletions

Binary file not shown.

Binary file not shown.

View File

@ -22,9 +22,10 @@ func main() {
b := make([]byte, 256) // to compensate for uiInitOptions b := make([]byte, 256) // to compensate for uiInitOptions
e, _, _ := uiInit.Call(uintptr(unsafe.Pointer(&b[0]))) e, _, _ := uiInit.Call(uintptr(unsafe.Pointer(&b[0])))
if e != 0 { panic(e) } if e != 0 { panic(e) }
s := "Hello from Go" ss := "Hello from Go"
s := []byte(ss)
w, _, _ := uiNewWindow.Call( w, _, _ := uiNewWindow.Call(
uintptr(unsafe.Pointer(&s)), uintptr(unsafe.Pointer(&s[0])),
320, 240, 0) 320, 240, 0)
uiWindowOnClosing.Call(w, syscall.NewCallbackCDecl(onClosing), 0) uiWindowOnClosing.Call(w, syscall.NewCallbackCDecl(onClosing), 0)
uiControlShow.Call(w) uiControlShow.Call(w)