Solved

Managed EXE calling a Unmanged EXE

Posted on 2013-01-16
4
213 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now