func setIcon(iconPth string) {
	cIconPth, _ := syscall.UTF16PtrFromString(iconPth)
	C.set_icon((*C.char)(unsafe.Pointer(cIconPth)))
}
Beispiel #2
0
func setIcon(iconPth string) {
	cIconPth := C.CString(iconPth)
	defer C.free(unsafe.Pointer(cIconPth))
	C.set_icon(cIconPth)
}