How do I write vb.net code to compile and execute C programs?

I am trying to create a vb.net application that has 2 text fields, 2 radio buttons and 2 buttons (one is compiled and the other is "launch"). How do I load the content of a C / C ++ file into the 1st text box and by clicking the compile button, I should be able to show errors or C / C ++ program in the second text box. When I click the Run button, I have to show the output in the second text box. In short, I want to use the second textbox as my terminal / console. Radio buttons 4 to select C or C ++.

0


a source to share


3 answers


Have a look at this article - good examples on calling external programs (which will be your C ++ compiler if you're not going to write your own) from VB.Net.



+1


a source


Why do you need this? What are you trying to do. Do you just want to execute command line compilers from a VB.NET application?



If so, take a look at a method System.Diagnostics.Process.Start()

that allows you to execute another application.

0


a source


I don't think writing a compiler C++

in VB.NET

is something that an absolute beginner should start out with. Writing a compiler is a very advanced field.

0


a source







All Articles