Sign in to follow this  
bartiss

URL launched from C++ code (MFC) ? [solved]

Recommended Posts

bartiss    136
Hi, I'm trying to write a simple app using MFC. All it has to do is: 1. Open an url when button1 is pressed 2. Open word document when button2 is pressed 3. Open powerpoint when button3 is pressed How do I make Windows run something from my code? I tried system() but it launches cmd.exe first and it makes it even harder to do the job. I would like to launch run command (from Start) with a parameter :) Is it possible? Thanks Bartiss I've found it if someone's interested: ShellExecute(NULL,"open","www.x.com",NULL,NULL,SW_SHOW); ShellExecute(NULL,"open","C:\Program Files\...",NULL,NULL,SW_SHOW); [Edited by - bartiss on December 13, 2006 7:45:34 AM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this