Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Managed EXE calling a Unmanged EXE

Posted on 2013-01-16
4
218 Views
Last Modified: 2013-01-16
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
Comment
Question by:metro156
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:jmcmunn
ID: 38785524
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
 

Author Comment

by:metro156
ID: 38785546
Even if it is Managed to Unmanaged?
0
 
LVL 12

Accepted Solution

by:
jmcmunn earned 250 total points
ID: 38785557
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
 

Author Closing Comment

by:metro156
ID: 38785582
thanks
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question