Click to See Complete Forum and Search --> : calling the Browser from a Dialog Box


gonzo48
October 26th, 2004, 07:47 PM
How do I query for the default Browser, and then execute it giving it the file I want it to display?

I have some html-based documentation for my application. I now want to have a menu option to view the application documentation. It seems the easiest way to do this would be to execute the default browser giving it the index file I want it to start with. Any thoughts on this and how I should proceed?

thanks,

gonzo

kirants
October 26th, 2004, 07:58 PM
Question:
Do you want the browzer to be opened outside of your application window ? Similar to , you know, launching a browzer and then punching in the URL for the index file..

If so, You can use ShellExecute(NULL,"open","path to html index file",NULL,NULL,SW_SHOW);

gonzo48
October 26th, 2004, 08:43 PM
Thank you for your reply.

Yes, that is exactly what I want to do.

How do I find out what the default browser is?

Oh wait.... I guess if the file extension (html) is made then I do not care what app is executed, right??

gonzo

kirants
October 26th, 2004, 08:49 PM
u r right.. ShellExecute will do the stuff for you.

gonzo48
October 26th, 2004, 09:04 PM
Just coded it--it works exactly as I wanted it to.

Thanks for your help.

gonzo

kirants
October 27th, 2004, 12:21 PM
Cool. Good luck..