如何从C#执行命令行程序并返回STD OUT结果.具体来说,我想对以编程方式选择的两个文件执行DIFF,并将结果写入文本框.是的,我可以为自己解决这个问题,但肯定有人做过类似的事情,我很懒...
我的问题如下:
你觉得这可能吗?
我做了一些研究,似乎不太可能,但我可能忽略了一些东西.
谢谢 :)
第一个二进制文件包含类似的内容
func main() {
// Here I need to compile an external go file (or package) which contains
// The definition of runFoo()
// Once the file/package is compiled and linked I need to call the compiled code
runFoo()
// Continue the execution process normally here
}
Run Code Online (Sandbox Code Playgroud) 有没有办法在Windows下针对Go v1.7构建一个dll?
我试过一个经典
go build -buildmode=shared main.go
Run Code Online (Sandbox Code Playgroud)
但得到
windows/amd64不支持-buildmode = shared
更新 好的,我有答案.对于有兴趣的人:https: //groups.google.com/forum/#!topic/golang-dev/checkFZAZbnjzU
我将C++动态链接库转换为静态库只是为了获得更多知识.我的问题是如何使用.obj文件用C#express/MS visual studio编译这两个项目?
可以在Windows上调用Go函数C++或C#代码吗?Go支持在Windows中生成dll吗?