|
@@ -65,14 +65,14 @@ func Gdyb1201(certNo string, org_name string, doctor string, fixmedins_code stri
|
65
|
65
|
ole.CoInitialize(0)
|
66
|
66
|
unknown, _ := oleutil.CreateObject("yinhai.yh_hb_sctr")
|
67
|
67
|
xmlhttp, _ := unknown.QueryInterface(ole.IID_IDispatch)
|
68
|
|
- //var str3 string
|
69
|
|
- str := make([]byte, 256)
|
|
68
|
+ var str3 string
|
|
69
|
+ //str := make([]byte, 256)
|
70
|
70
|
//str1 := make([]byte, 256)
|
71
|
71
|
//r, _, _ := readCard.Call((uintptr)(unsafe.Pointer(&str[0])), IntPtr(1024), (uintptr)(unsafe.Pointer(&str1[0])), IntPtr(1024))
|
72
|
72
|
|
73
|
|
- result, _ := oleutil.CallMethod(xmlhttp, "yh_hb_call", "1201", StrPtr(string(bytesData)), (uintptr)(unsafe.Pointer(&str[0])))
|
|
73
|
+ result, _ := oleutil.CallMethod(xmlhttp, "yh_hb_call", "1201", StrPtr(string(bytesData)), StrPtr(str3))
|
74
|
74
|
|
75
|
|
- fmt.Println(string(str))
|
|
75
|
+ fmt.Println(str3)
|
76
|
76
|
fmt.Println("~~~~~~~~")
|
77
|
77
|
fmt.Println(result)
|
78
|
78
|
fmt.Println(result.ToString())
|