How to call C++ program from C# program
-
:)Hello everyone, I have been working on C# programs, my friend gave me a C++ program that is useful to me and i need to call that C++ program from my C# program. Is there a way to do that? Thanks for any help in advance :) min
It depends on what you mean by "call". If you mean "executed the executable", you can use the Process class to spawn out a new process. If you mean "call into the code", look at this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp12192002.asp
-
It depends on what you mean by "call". If you mean "executed the executable", you can use the Process class to spawn out a new process. If you mean "call into the code", look at this: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncscol/html/csharp12192002.asp
if you Call the .exe file.You can call the API :ShellExecute().Of course,you must import the function at first.;)