Click here to Skip to main content
13,199,311 members (61,520 online)
Rate this:
 
Please Sign up or sign in to 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 3-Mar-13 1:14am

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04 | 2.8.171020.1 | Last Updated 3 Mar 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100