|
@@ -2,8 +2,6 @@ package sg
|
2
|
2
|
|
3
|
3
|
// #include <stdio.h>
|
4
|
4
|
// #include <stdlib.h>
|
5
|
|
-//extern void Init();
|
6
|
|
-//extern void ReadCardBas();
|
7
|
5
|
import "C"
|
8
|
6
|
|
9
|
7
|
import (
|
|
@@ -98,7 +96,7 @@ func (c *HisApiController) TestGetBasBaseInfo() {
|
98
|
96
|
result := int(ret)
|
99
|
97
|
fmt.Println("SSCard的运算结果为1:", result)
|
100
|
98
|
|
101
|
|
- ret2, _, err2 := readCard.Call(cs1, IntPtr(1024), cs2, IntPtr(1024))
|
|
99
|
+ ret2, _, err2 := readCard.Call((uintptr)(unsafe.Pointer(&cs1)), IntPtr(1024), (uintptr)(unsafe.Pointer(&cs2)), IntPtr(1024))
|
102
|
100
|
fmt.Println(" Add(4,5)的结果为:", ret2)
|
103
|
101
|
fmt.Println(" str:", cs1)
|
104
|
102
|
fmt.Println(" str1:", cs2)
|