Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 247
  • Last Modified:

Managed EXE calling a Unmanged EXE

I am just curious; it is possible for a Managed EXE (.NET) program call another EXE that is unmanaged.
I don't know why you would do this but my curiosity is calling me.
0
metro156
Asked:
metro156
  • 2
  • 2
1 Solution
 
jmcmunnCommented:
Sure, you can call any process with:

Process.Start("some executable here");

The code does not know or care what language the exe is written in.  :-)
0
 
metro156Author Commented:
Even if it is Managed to Unmanaged?
0
 
jmcmunnCommented:
Yes, if it is an exe.  if it is a method in a DLL you have to use a DllImport.  But it is still possible even then.
0
 
metro156Author Commented:
thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now