RE: [GD-Windows] Opening a browser window
Brought to you by:
vexxed72
From: Andrew G. <And...@ho...> - 2001-12-04 10:11:04
|
Beware! With ShellExecute, the operation string must correspond to one of the valid operations listed for that file type in the registry (stored in HKEY_CLASSES_ROOT, in this case HKEY_CLASSES_ROOT\htmlfile). If you specify an operation that is not listed there, then ShellExecute will fail. This may be the case with Opera/Mozilla or older versions of IE. Since I don't use them, I really have no idea whether this is the case, but it's a heads-up for something to watch for. Perhaps it wouldn't be a bad idea to test the return of ShellEx with 'opennew' and if that fails, fall back to 'open' Andrew Grant Hothouse Creations > -----Original Message----- > From: Ed Sinjiashvili [mailto:ed...@sw...] > Sent: 04 December 2001 07:40 > To: gam...@li... > Subject: Re: [GD-Windows] Opening a browser window > The following works for me (tested on W98/IE4 only): > ShellExecute(NULL, "opennew", > "http://your_page_here.html", NULL, NULL, SW_SHOWNORMAL); > > -- > Ed > This email is covered by the following disclaimer, please read before accepting this email. http://www.hothouse.org/disclaimer/ |