Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Managed EXE calling a Unmanged EXE

Posted on 2013-01-16
4
Medium Priority
?
234 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
[X]
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
  • 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 1000 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
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…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

715 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