Advertisement

Opening an html doc with the Win API

Started by January 30, 2001 09:56 PM
5 comments, last by atreyu 23 years, 11 months ago
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
  
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
Check out ShellExec, IIRC.

GamesToGO: The Console Gamer''s Paradise
Advertisement
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
woha
Doh! I can''t believe I didn''t notice ShellExec is a function. It''s working perfectly. Thanks for all your help everyone.
Advertisement
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.


This topic is closed to new replies.

Advertisement