Question about opening URL in Web-Browser

This is a discussion on Question about opening URL in Web-Browser within the C Programming forums, part of the General Programming Boards category; Hey, I am making a program for both windows/linux for a project, i was wondering if there is a nice ...

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

    Question about opening URL in Web-Browser

    Hey,
    I am making a program for both windows/linux for a project, i was wondering if there is a nice way to open a url in webbrowser.

    at the moment im using #ifdef WINDOWS and #ifdef LINUX, to open a webpage.

    At the time im using system call to open the webpage, i know you can use shellexcute for windows to open a url in default application and for linux im using system("firefox www.web.com").

    Like i said, I just wondered if there was a cleaning nicer way of doing it.

    T.I.A
    --Lee

  2. #2
    Registered User
    Join Date
    Feb 2006
    Posts
    54
    On linux you can call x-www-browser which is generally a symlink to an available browser, so that you're not reliant on the user having Firefox. There is no cross-platform way to do without using nonstandard libraries, if that's what you're asking.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    3
    Thanks Doodle77,

    i was looking to do it crossplatform :/

    well thanks for you reply i appricate it i will look into x-www-browser, so once again thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please Try My Web Browser
    By Daniel in forum Windows Programming
    Replies: 10
    Last Post: 06-20-2002, 12:02 PM
  2. Opera Web Browser
    By MrWizard in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 06-17-2002, 05:42 PM
  3. Replies: 1
    Last Post: 06-07-2002, 12:22 PM
  4. Web browser, dialogs, & kicking my pc
    By jinx in forum Windows Programming
    Replies: 1
    Last Post: 12-22-2001, 06:47 PM
  5. MFC Web Browser
    By Unregistered in forum Windows Programming
    Replies: 3
    Last Post: 09-11-2001, 03:03 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21