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?
1
Expert's answer
2012-01-05T12:40:09-0500

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 the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS