Click here to Skip to main content
11,484,752 members (74,891 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ C#
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 2: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 | :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
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 160
2 Raje_ 155
3 OriginalGriff 137
4 Mehdi Gholam 130
0 Sergey Alexandrovich Kryukov 8,494
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 3 Mar 2013
Copyright © CodeProject, 1999-2015
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