Thread: Invoke IE

  1. #1
    Registered User
    Join Date
    Jan 2008
    Posts
    3

    Question Invoke IE

    Is there a solid way to invoke MS Internet Explorer, that will work on multiple versions of Windows, from within an ANSI C application, to open a specific html file? Is "createprocess" the best bet?

    Thanks!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > Is "createprocess" the best bet?
    Probably, but then it wouldn't be ANSI-C as such (making use of a non ANSI function).

    Though you might consider ShellExecute() as well, which would invoke the user preferred browser and not just IE.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2008
    Posts
    3
    Thanks much for the suggestion. ShellExecute fits my needs to a T.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 07-07-2009, 10:05 AM
  2. invoke non-static function using ::
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 02-24-2008, 01:29 AM
  3. Invoke a function from another running program (EXE) in C/C++
    By sureshobabu in forum C++ Programming
    Replies: 3
    Last Post: 12-19-2006, 06:32 AM
  4. invoke the execution of one c program from another
    By kris.c in forum Networking/Device Communication
    Replies: 3
    Last Post: 06-08-2006, 11:10 PM
  5. passing a parameter to a system invoke
    By iain in forum C++ Programming
    Replies: 1
    Last Post: 09-18-2001, 09:21 AM