472,354 Members | 2,177 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,354 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 3677
:
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...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it so the python app could use a http request to get...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
1
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web server and have made sure to enable curl. I get a...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

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.