LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-01-2003, 10:01 PM   #1
kiennd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Rep: Reputation: 0
Question Call Other Application by one Program


Can you help me!
I want writing a program by C/C++ to call a other application, Example: Openoffice, but I cant not how to do it.

Example: call Winword appplication, Program was writen by VB:

'call WinWord Application
Dim appWD As Word.Application
Set appWD = New Word.Application
'Open exist file .doc
Dim doc As Document
Set doc = appWD.Documents.Open(filename, ReadOnly:=True).
 
Old 08-01-2003, 11:24 PM   #2
shishir
Member
 
Registered: Jul 2003
Location: bangalore . india
Distribution: openSUSE 10.3
Posts: 251

Rep: Reputation: 33
you can always do a system() and specify the program (with desired arguments,coming in argv) you want to execute...

more adventurous..you can do an exec on the program with desired arguments again,coming in argv
 
Old 08-01-2003, 11:26 PM   #3
brice2nice
Member
 
Registered: Jul 2003
Location: france
Distribution: GNU/Linux GNU/debian GNU/sarge
Posts: 48

Rep: Reputation: 15
You can have a look at the exec** family
 
Old 08-01-2003, 11:43 PM   #4
kiennd
LQ Newbie
 
Registered: Aug 2003
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for all!
Please tell me for more detail.
 
Old 08-02-2003, 01:52 AM   #5
lackluster
Member
 
Registered: Apr 2002
Location: D.C - USA
Distribution: slackware-current
Posts: 488

Rep: Reputation: 30
man 3 popen
 
  


Reply



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
Asking a C program to call a bash script sceadu Programming 4 07-28-2005 08:52 PM
call a c program in a shell script jagman Programming 4 04-05-2005 04:58 PM
call other program at run time Xiangbuilder Programming 4 10-01-2003 09:53 AM
How to call other program? Xiangbuilder Programming 11 09-11-2003 09:13 PM
how to put a shell call in a C/C++ program? Hano Programming 8 05-19-2002 02:26 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:17 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration