tags:

views:

222

answers:

3

I'm trying to make a vb.net application that has got 2 textboxes, 2 radio buttons and 2 buttons(one named compile and the other 'run'). How can I load the content of a C/C++ file into the 1st textbox and on clicking the compile button, i should be able to show the errors or the C/C++ program in the 2nd textbox. On clicking Run, I should be able to show the output in the 2nd textbox. In short, I want to use the 2nd textbox as a terminal/console. The radio buttons are 4 selecting the language C or C++.

A: 

Why would you want to? What are you trying to do. Do you just want to execute the commandline compilers from a VB.NET Application ?

If so have a look at the System.Diagnostics.Process.Start() method which allows you to execute another application.

Eoin Campbell
i wanna use d existing compilers
A: 

I don't think writing a C++ compiler in VB.NET is something an absolute beginner should be undertaking. Writing a compiler is a very advanced field.

Motti
how abt invoking an existing compiler????????
+1  A: 

Look at this article - good examples on calling external programs (which is what your c++ compiler would be unless you intend to write your own) from VB.Net.

Gary.Ray