Click here to Skip to main content
15,860,972 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I want to compile code of c++ in c#, the user of my program has rich text box that he has to write there a struct in c. and I want to compile this code to see if he has error. I tryd a lot of ways that I find
Posted

1 solution

You will need to supply or write a C++ compiler, and (probably) package the struct in a simple file before passing it over. Supplying may be a problem since you will need to be careful of copyright problems - you cannot just "hand out" compilers like sweeties! :laugh:

The other solution is to use one of the internet C++ compilation services - google may be of help here: https://www.google.co.uk/search?q=C%2B%2B+compile+on+internet&aq=f&oq=C%2B%2B+compile+on+internet&sourceid=chrome&ie=UTF-8[^] but I've never tried any of them so I have no idea how complex it would be.
 
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