Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am new to ASP.NET and I have a challenge here:

I have to create a webpage which should take C/C++ program from textarea and should produce output of the program below the textarea using label when a button is clicked on the webpage.

I have no difficulty creating the front page(textarea,button,label or other controls) and reading the content of textarea in back end page(cs page).

But I don't have any idea how I can compile and run the program read from textarea and produce the output which can be assigned to a label on webpage.

Any help on this will be much appreciated.

Thanks
Posted
Comments
[no name] 17-May-14 13:48pm    
http://www.codeproject.com/Answers/727569/How-to-Create-online-compiler-in-asp-net#answer1

This has bad news written all over it.

What's stopping someone from posting code that can wipe out your web server?
 
Share this answer
 
It may sound trivial, but the answer is: to do so, you would need some C++ compiler on the server side. There is no such thing as miracle. Or you may need to create a compiler by yourself. And you would need to check up the license for the compiler, if it's not all written by your own.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900