473,385 Members | 1,707 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.

How can I Run( Execute ) another application( Calc.exe ) from anotherapplication in VC++?

How can I Run( Execute ) another application( Calc.exe ) from another
application in VC++?
I mean, is there any API or Function to do it?

Appreciate...
Jan 19 '08 #1
2 3806
:
How can I Run( Execute ) another application( Calc.exe ) from another
application in VC++?
I mean, is there any API or Function to do it?

Appreciate...

http://msdn2.microsoft.com/en-us/library/bb762153.aspx
#include <shellapi.h>

int main(void)
{
ShellExecute(0,0,"calc.exe",0,0,SW_SHOWNORMAL);
}
There's also a "ShellExecuteEx" function you might want to take a look at.

That's the last platform-specific question I'll answer here -- direct
further questions to a Microsoft programming newsgroups, or send me an e-
mail and I'll help you out with any little problems.

--
Tomás Ó hÉilidhe
Jan 19 '08 #2
Yeah man,
Thank you in advance.
Jan 19 '08 #3

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

Similar topics

2
by: Debbie | last post by:
Hi I have developed an application that access an SQL database and installed it on a different machine The installation is successful but when I try to run the application I get the following...
4
by: Rookie | last post by:
Hi, I needed some information on linking a C# application to a VC++ dll. How can this be done? It would be great if someone could give links to tutorials/articles on this subject. Thanks.
2
by: Mohan | last post by:
Hi, I have developed a .NET Windows application. I able to run(Execute) it from the local drive of my PC. If I try to execute it from the SourceControl(Clear case) or from Shared drives, then it...
0
by: David Pretorius | last post by:
Hi, trying to run an outlook and winfax pro applications from vb .net web application program. I have tried many setups from the impersonation and changing authentication. I am running xp...
6
by: Lucas Cowald | last post by:
Hi, I need to RUN/execute a Command-Line command from an ASP page. This is the command: sse45.exe -i k:\o\2.wmv -o k:\o\2.shh -w 128 -df 0 -m 2 -p Can you show me a code how to run this...
8
by: Tim | last post by:
Is it possible to close the form I invoked via Application.Run() as I invoke another form without the application exiting? (I'd rather not hide it since I don't need it anymore) ....call to...
7
by: skbraja | last post by:
Hi there I want to run an application (say BegUI). I tried to open the script conf.vbs as below Set objShell = WScript.CreateObject("WScript.Shell") ObjShell.run("BegUI.exe") Or...
1
by: Bipin Mistry | last post by:
hi all, Please reply as I am new to VC .Net GUI Can any one please tell me from where I can set Application version in VC .Net environment. Please note that I am creating Exe & DLL...
7
by: Ashutosh Bhawasinka | last post by:
Hi, I have a C# .Net application which needs to use some feature which can be only developed in Visual C++ (its extended MAPI). The C# exe will be supplied to users without a setup. What kind...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.