Removed the original exe/dll and edited some xtest.go stuff.
This commit is contained in:
parent
554cd31fa2
commit
e775c3bb6c
BIN
wpf/libui.dll
BIN
wpf/libui.dll
Binary file not shown.
BIN
wpf/xtest.exe
BIN
wpf/xtest.exe
Binary file not shown.
|
@ -22,9 +22,10 @@ func main() {
|
|||
b := make([]byte, 256) // to compensate for uiInitOptions
|
||||
e, _, _ := uiInit.Call(uintptr(unsafe.Pointer(&b[0])))
|
||||
if e != 0 { panic(e) }
|
||||
s := "Hello from Go"
|
||||
ss := "Hello from Go"
|
||||
s := []byte(ss)
|
||||
w, _, _ := uiNewWindow.Call(
|
||||
uintptr(unsafe.Pointer(&s)),
|
||||
uintptr(unsafe.Pointer(&s[0])),
|
||||
320, 240, 0)
|
||||
uiWindowOnClosing.Call(w, syscall.NewCallbackCDecl(onClosing), 0)
|
||||
uiControlShow.Call(w)
|
||||
|
|
Loading…
Reference in New Issue