LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to call an app from my c++ code? (https://www.linuxquestions.org/questions/programming-9/how-to-call-an-app-from-my-c-code-496924/)

Puckaroo 10-30-2006 09:57 AM

How to call an app from my c++ code?
 
Hi, first of all sorry if this is not the place to post this or if someone has already answered the question before, but I haven't been able to find it just yet.

The thing is, say i want my program to open k3b, add some files to a cd project, that i would have previously chosen and burn them, is there a way to do that?, or maybe write a text and an email address, and then open kmail (yup, using kde here, lol) and have it send the text to the email address.

What i want to know is, in my code, how to call those apps and give them the parameters needed. And also where do I find out what those parameters are.

I would really appreciate any ideas or links to manuals or anything you can point me to. Thank you very much.

Bbye.

nadroj 10-30-2006 10:28 AM

you would have to look up the KDE APIs i would imagine. if you simply want to open a program you could use: system("programName");
but if you want to 'talk' to the program i imagine youd need to refer to the KDE APIs.


All times are GMT -5. The time now is 03:19 AM.