VB.NET Application which can compile and run C programs
        Posted  
        
            by Arjun Vasudevan
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Arjun Vasudevan
        
        
        
        Published on 2010-04-07T14:04:18Z
        Indexed on 
            2010/04/07
            14:13 UTC
        
        
        Read the original article
        Hit count: 385
        
These days I'm working on a VB.NET application which can be used to edit, compile and run C programs. Can someone tell me how I can call a cl.exe process from within my VB program and also that how do I run the program in the console widow itself.
Presently I have only the editor ready. With that one can type in a program and save it with a ".c" extension. Now there are 2 buttons on my form - "Compile" and "Run". When the user clicks on the "Compile" button, the program should be passed to the cl.exe process and the errors should be displayed in another textbox or the DOS(black screen itself). And when the user clicks on the "Run" button, the ".exe" file which just got created should get executed.
© Stack Overflow or respective owner