65 721
Assignments Done
99,2%
Successfully Done
In October 2018

Answer to Question #5852 in C# for cscience

Question #5852
I want to write a program in csharp that can compile cpp codes using GCC compiler and running the exe file, sending inputs and get outputs. my solution is using "Process" class and run cmd and ... . but is there any better way?
Expert's answer
As we have understood you want to use precompiled executable in CLR. In this case you’re going to mix up unmanaged code with managed one. The right way to do it is to use DLLImport. So you’ll have to compile your c++ code into dll. See more here.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions