Re: How to invoke web browser?
peter@ashlyn.co.uk wrote
>
> I am not sure if this is strictly VC++ country, but from within a VC++5
> program, how do I invoke the systems default web browser and pass it a
> page I want it to display? (I am not looking to have the browser
> contained within my own app, but just run externally to it).
>
> I guess I could use 'system' if I knew where the default browser was,
> but I suspect there is a much simpler way.....
ShellExecute(NULL,"open","myHtmlpage.html",NULL,"<directory or ".">",0);
You can use ShellExecuteEx to find out which application will be launched.
Horrible WIN32 stuff but quite handy...
Michael
> --------------------------------------------------------------
> Peter Stokes
> Ashlyn Computer Services Ltd
> Tel: (UK) 01636-627900
> Fax: (UK) 01636-627909
> Mobile: 07977-532320
> http://www.ashlyn.co.uk
> --------------------------------------------------------------
>
> --
> To UNSUBSCRIBE, email to other-vgui-discuss-request@other.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@other.debian.org
Reply to: