473,385 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

vc w/clr: How to call an executable?

Does anyone know how to call an executable from within Visual C++ 2005
Express (using the CLR)?

For example, click Button1 to launch Microsoft Paint:

System::Void Button1_Clicked(System::Object^ sender, System::EventArgs^
e)
{
// what can I use to open MS Paint?
}

Thanks.
Jun 28 '06 #1
1 1107
poojo hackma wrote:
Does anyone know how to call an executable from within Visual C++ 2005
Express (using the CLR)?

For example, click Button1 to launch Microsoft Paint:

System::Void Button1_Clicked(System::Object^ sender, System::EventArgs^
e)
{
// what can I use to open MS Paint?
}

Thanks.


Take a look at the System.Diagnostics.Process class:

http://msdn2.microsoft.com/en-us/lib...s.process.aspx
Jun 28 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Bern McCarty | last post by:
I have run an experiment to try to learn some things about floating point performance in managed C++. I am using Visual Studio 2003. I was hoping to get a feel for whether or not it would make...
10
by: Gustavo L. Fabro | last post by:
Greetings! I've been porting an application for Builder to VS .NET 2003 and searching for possible bottlenecks (the application is currently running slow). I found out one scenario that takes a...
1
by: nicolas.hognon | last post by:
Hello, With non CLR C++ I am used to have a static library (MyMain.lib) which defines the main entry points depending on the plateform (windows, unix, mac os x, ps3, ...). We are planning to...
4
by: =?Utf-8?B?RGFuIFNoZXBoZXJk?= | last post by:
I am trying to compile a CLR function as an EXE. When I try to use the VBC /target:exe command I get an error indicating that there is no sub-form. All I have in the project is a SQL script that...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.