摘要: private void button6_Click(object sender, EventArgs e) { byte[] inParam = null; IntPtr ptr = IntPtr.Zero; int outlen = -1; string outstr = ""; inParam 阅读全文
posted @ 2020-05-02 10:55 jiftle 阅读(2240) 评论(0) 推荐(0) 编辑
摘要: private void ExecCheckExe(){ string exefile = "d:\\chktool\\checktool.exe"; if (File.Exists(exefile)) { Process process = new Process(); ProcessStartI 阅读全文
posted @ 2020-05-02 10:29 jiftle 阅读(3516) 评论(0) 推荐(0) 编辑
摘要: 编译环境: 1. windows 7 2. TDM-gcc x64 gcc 9.2 TDM-gcc命令行下,执行以下指令 # 编译生成动态库,默认编译动态库,生成的和操作位数相同go build -buildmode=c-shared -o checktool.dll TDM-gcc 下载地址: h 阅读全文
posted @ 2020-05-02 10:28 jiftle 阅读(1460) 评论(0) 推荐(0) 编辑
摘要: $ tree.├── dllcall.go├── libdll.h├── loaddll.c└── loaddll.h dllcall.go package dlltest/*#include "loaddll.h"#cgo LDFLAGS: -ldl*/import "C"import ( "en 阅读全文
posted @ 2020-05-02 10:04 jiftle 阅读(2500) 评论(0) 推荐(0) 编辑
摘要: 使用Go语言写的GUI程序,演示如何使用go语言写GUI程序。 脱胎于go-astilectron-demo 特点: 1. go语言编写业务代码,底层实现 2. web方式编写界面,可以使用js、css等web技术实现酷炫的界面 适用范围: 1. 自己做点小工具,没有安全要求,支持跨平台 想上传图片 阅读全文
posted @ 2020-05-02 09:50 jiftle 阅读(9156) 评论(0) 推荐(0) 编辑