system("C:\\Program Files\\Programming\\Projects\\Direct3D\\Eclipse\\logfile.html");
but it doesn't work, and I would rather use something more up to date than system() anyway. I've seen dialog boxes before with links to webpages before so I'm guessing there's a better way.
Thanks for any help.
--Ben
Edited by - atreyu on January 30, 2001 11:46:21 PM
Opening an html doc with the Win API
I'm writing a debug program that outputs errors into an html file. It works a lot like assert() only the info is placed in the html file instead of displayed in a message box. When an error occurs I want the html file to automatically be opened. I've tried
Call me stupid, but I have no clue what that is and the link is for a shopping site.
quote: Original post by atreyu
Call me stupid, but I have no clue what that is and the link is for a shopping site.
What compiler??
Checkout your compiler's winAPI documentation for the command: ShellExecute
Or check the MSDN website for the win32 API documentation.
Edit: realized the title of message said WinAPI and so removed a bunch of junk that I wrote for no reason.
B e S
It's Da BOMB Baby!!!
. o O ~
A little nonsense now and then,
is relished by the wisest men
~ O o .
-- Willy Wonka
Edited by - wrenhal on January 31, 2001 4:08:39 PM
BeSIt's Da BOMB Baby!!!. o O ~ A little nonsense now and then,is relished by the wisest men~ O o .-- Willy Wonka
system("start C:\\Program Files\\Programming\\Projects\\Direct3D\\Eclipse\\logfile.html");
this should work under windows i guess...
tja mann
this should work under windows i guess...
tja mann
woha
Doh! I can''t believe I didn''t notice ShellExec is a function. It''s working perfectly. Thanks for all your help everyone.
February 02, 2001 10:35 AM
hi
ShellExecute is a good way to run some application with some
command line parameters, but if you want a control on the newly
opened app (for example feeding a new page, or...) then you
must use OLE Automation, it gives you some functions to control
your IE session.
ShellExecute is a good way to run some application with some
command line parameters, but if you want a control on the newly
opened app (for example feeding a new page, or...) then you
must use OLE Automation, it gives you some functions to control
your IE session.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement