This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Opening local URL in browser
- To: xemacs-nt at xemacs dot org
- Subject: Opening local URL in browser
- From: Olaf Bachmann <obachman at mathematik dot uni-kl dot de>
- Date: Tue, 2 May 2000 16:13:27 +0200 (MET DST)
- CC: cygwin at sourceware dot cygnus dot com
From my cygwin application, I'd like to open a local html file in the
default system browser. Looking through the Xemacs sources, I found
the 'ShellExecute' call (in file objects-msw.c). Called from within
Xemacs, it does exactly what I had expected. Duplicating the system
call with exactly the same arguments in my little test program with:
#include <windows.h>
int main()
{
ShellExecute(NULL, "open", NULL, "index.html", "d:\\home\\obachman\\tmp\\", SW_SHOWDEFAULT);
}
does not bring up the HTML browser, but the FileBrowser with the C: directory
as its contents. The same happens if I play around with the directory
and location of the index.html file and/or the SW_* parameter
Do I still have to call some initialization before ShellExecute works
as expected? What else could I do to open a local URL in a browser?
Thanks for any help,
Olaf
____________________________________________________________________________
Olaf Bachmann | Phone: + 49-631/205 2738 (work)
Centre for Computer Algebra| + 49-6306/7396 (home)
Fachbereich Mathematik | Email: obachman@mathematik.uni-kl.de
Universitaet Kaiserslautern| URL: http://www.mathematik.uni-kl.de/~obachman
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com