LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-23-2004, 02:38 PM   #1
Fan
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Rep: Reputation: 0
How do I launch Mozilla or Firefox in a C++ program?


I have a program written in C++. I want to know how to launch a web browser (Mozilla, netscape or firefox) within the program. (e.g. have a function call to pop up a X window that renders a HTML page).
 
Old 07-23-2004, 02:42 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967Reputation: 1967
you'd use the system() function, just like you would to open any program...
 
Old 07-23-2004, 02:45 PM   #3
Fan
LQ Newbie
 
Registered: Jul 2004
Posts: 2

Original Poster
Rep: Reputation: 0
hi chris,

I am not familar with system() function. In a Linux console, I do: mozilla "www.linuxquestions.org". Then a web browser pops up displaying the specified web site. How do I do the same using system()?
Many thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you launch Mozilla Firefox from the command line ? pppaaarrrkkk Linux - Newbie 1 10-07-2005 03:06 PM
Launch an application in firefox - How? TSynergy Linux - Newbie 5 02-27-2005 12:02 PM
Have Firefox Launch X on startup Johnathan4 Linux - Software 1 02-12-2005 11:02 AM
firefox launch script curmudgeon42 Linux - Software 2 06-06-2004 09:20 PM
external launch of firefox... Borelian Linux - Software 1 05-09-2004 06:50 AM


All times are GMT -5. The time now is 07:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration