qianniancn / go-dmsoft

go 调用大漠插件
112 stars 44 forks source link

大漠盾有问题啊,类型错误根本无法使用 #10

Open liyisker opened 2 years ago

qianniancn commented 2 years ago

有类型错误的话,源代码里自己修改一下吧

liyisker commented 2 years ago

试过了,直接改成string并不行,会直接报错,还有SetSimMode调用也会会报错。debug了一个晚上都没搞懂问题出在什么地方。

qiannian @.***> 于 2022年4月19日周二 23:18写道:

有类型错误的话,源代码里自己修改一下吧

— Reply to this email directly, view it on GitHub https://github.com/qianniancn/go-dmsoft/issues/10#issuecomment-1102781391, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGJCVTAUEWQF3Q5CQZD5TEDVF3FFVANCNFSM5TZFSTNQ . You are receiving this because you authored the thread.Message ID: @.***>

qianniancn commented 2 years ago

你看一下返回值什么

willpw commented 2 years ago

是不是这样 DmGuard调用这个就报错 有能看懂的大佬嘛 看不懂

`Exception 0xc0000005 0x0 0x0 0x35ab07be PC=0x35ab07be

runtime.cgocall(0x1020d40, 0x1284060c) D:/Program Files/Go/src/runtime/cgocall.go:157 +0x58 fp=0x12838d20 sp=0x12838d08 pc=0xfc3c98 syscall.SyscallN(0x34b57420, {0x12838d68, 0x9, 0x9}) D:/Program Files/Go/src/runtime/syscall_windows.go:538 +0x11d fp=0x12838d4c sp=0x12838d20 pc=0x101e33d syscall.Syscall9(0x34b57420, 0x9, 0x352f0dc0, 0x161, 0x1280a120, 0x804, 0x1, 0x12838e08, 0x12906150, 0x12838e74, ...) D:/Program Files/Go/src/runtime/syscall_windows.go:488 +0x7a fp=0x12838d90 sp=0x12838d4c pc=0x101e04a github.com/go-ole/go-ole.invoke(0x352f0dc0, 0x161, 0x1, {0x12838f4c, 0x2, 0x2}) C:/Users/Administrator/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/idispatch_windows.go:175 +0x139a fp=0x12838ef0 sp=0x12838d90 pc=0x10fe8aa github.com/go-ole/go-ole.(IDispatch).Invoke(...) C:/Users/Administrator/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/idispatch.go:27 github.com/go-ole/go-ole.(IDispatch).InvokeWithOptionalArgs(0x352f0dc0, {0x1485f7c, 0x4}, 0x1, {0x12838f4c, 0x2, 0x2}) C:/Users/Administrator/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/idispatch.go:71 +0xc4 fp=0x12838f18 sp=0x12838ef0 pc=0x10fcff4 github.com/go-ole/go-ole.(*IDispatch).CallMethod(...) C:/Users/Administrator/go/pkg/mod/github.com/go-ole/go-ole@v1.2.6/idispatch.go:79 `

qianniancn commented 2 years ago

@willpw 已经测试过了,没有问题,可能是你没注册,大漠盾属于高级功能

willpw commented 2 years ago

@qianniancn 好的 大佬辛苦了 是忘了注册了