468,513 Members | 1,750 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,513 developers. It's quick & easy.

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 3270
:
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Rookie | last post: by
2 posts views Thread by Mohan | last post: by
reply views Thread by David Pretorius | last post: by
6 posts views Thread by Lucas Cowald | last post: by
7 posts views Thread by Ashutosh Bhawasinka | last post: by
reply views Thread by NPC403 | last post: by
1 post views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.