PDA

View Full Version : How we can call .exe/Class created form C++ in C#


amit211278
06-18-04, 01:48 AM
Dear All,
I made a program in C++ and i want to call it into C#.
How can i call it.
Thanks

EvilHaider
06-18-04, 10:07 PM
Can you be a little more specific?

Is your program compiled to a DLL? If yes, you can reference the DLL and call any function in that dll file as an 'external' function from C#. (To access native win32 functions from the windows dlls for example).

mrhijazi
07-01-04, 07:42 AM
you can call any .exe file using shell function shell(.......................)

Alexei Kubarev
07-05-04, 01:03 PM
ehh... why not simply using Process.Start?!

mendi_1983
01-31-05, 11:27 AM
why don't u use process.start("file.exe", "arguments");

Owen
02-14-05, 06:44 AM
Hi. Is the program managed or unmanged? Managed programs can be added to .net refrences like Managed assemblies can. If its COM, you can access it by adding a COM refrence. If its a standard Windows DLL, you should follow peoples suggestions above.