在VB.NET应用程序中使用外部编译器 [英] Using a foreign compiler in VB.NET application

查看:97
本文介绍了在VB.NET应用程序中使用外部编译器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个问题.我最近发现了我的一个旧应用程序(它是用VB.NET编写的,现在我使用C#),但是它仍然不错,我想在其中包含一个C ++编译器.它是一个文本编辑器,因此我希望它能够编译.cpp文件.我四处搜寻搜索编译器,并阅读了有关Dev-C ++的"mingw32-gcc.exe"的信息-给出适当的命令行参数后,它可以用作编译器.
有人可以帮助我了解如何使用此文件,我应该使用其他文件,需要什么参数等吗?

I have a question. I recently discovered one of my old apps (it''s written in VB.NET, I use C# now), but it''s still good and I want to include a C++ compiler in it. It''s a text editor, so I want it to be able to compile .cpp files. I googled around searching for a compiler and read about Dev-C++''s "mingw32-gcc.exe" - that it could be used as a compiler when given the proper commandline arguments.
CAn someone help me on how to use this file, should I use other files, what arguments it needs, etc.?

推荐答案

Mingw- ^ ].

gcc编译器选项 [ ^ ].

这不是一个文件,而是一个在Windows上模拟linux/U * ix的开发环境.

您可以使用.Net Process类来调用任何应用程序,包括gcc.

问候
Espen Harlinn
Mingw - Minimalist GNU for Windows[^].

gcc compiler options[^].

This isn''t a single file - it''s a development environment somewhat simulating linux/U*ix on windows.

You can use the .Net Process class to invoke any application, including gcc.

Regards
Espen Harlinn


我建​​议您继续使用Google来找到该编译器的文档,因为它是免费的,而且文档记录合理,所以实际上应该不会太难.
I suggest that you continue to use google to find the documentation for that compiler, which really shouldn''t be too hard since it''s free, and reasonably well-documented.


BTW,您是否知道也可以使用Visual Studio附带的命令行编译器?

编辑==============

当一行文本可以解决问题时,为什么要随您的应用程序分发它:

需要Visual Studio 20xx."

到那时,您要做的就是提示用户为您提供Visual Studio的路径,或者提示您以编程的方式指出它的位置.
BTW, were you aware that you can use the command line compiler that comes with Visual Studio as well?

EDIT ==============

Why distribute it with your app when a single line of text will fix the problems:

"Requires Visual Studio 20xx."

At that point, all you have to do is prompt the user to give you path to Visual Studio, or alternatively, finger out where it is programatically.


这篇关于在VB.NET应用程序中使用外部编译器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆