| | |
c/c++ programs communicating with eachother
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jan 2005
Posts: 8
Reputation:
Solved Threads: 0
Hi,
Detail:
Language: C++
OS: Unix based, DOS/Windows
Status: Begginer
Q/
How do I comunicate 2 diferent app, what I want is to call one program from another one, and get an answer from the second one, maybe send another call depending on the answer.
For example, comunicate with mysql, send a query and see the result. I know that there are Libraries for this specific task, but I whant to know how to do it in general.
I have seen some people recomending Sockets, Pipes and Standard I/O library, wich one do you think is the right one?
I´m not plannig yet to stablish communication between two or more computers, every app would be running in the same machine.
Thanks in advance.
Detail:
Language: C++
OS: Unix based, DOS/Windows
Status: Begginer
Q/
How do I comunicate 2 diferent app, what I want is to call one program from another one, and get an answer from the second one, maybe send another call depending on the answer.
For example, comunicate with mysql, send a query and see the result. I know that there are Libraries for this specific task, but I whant to know how to do it in general.
I have seen some people recomending Sockets, Pipes and Standard I/O library, wich one do you think is the right one?
I´m not plannig yet to stablish communication between two or more computers, every app would be running in the same machine.
Thanks in advance.
•
•
Join Date: Jan 2005
Posts: 8
Reputation:
Solved Threads: 0
Ok.
I´ve been working with mysql in both, linux and windows.
But I have to start the server from the comand line.
I don´t like opening the CLI every time that I want to start or stop the server.
So I would like to make a small GUI app (I have the tools for the GUI already) that will let me with the click of a button start or stop the server at my will.
Plus, I want to be able to pass some arguments to the server, like user & pwd.
Sometimes there will be some errors starting the server and sometimes not.
So I would require two things:
a) to be able to pass this arguments to mysql server.
b) be able to see the answer that the mysql server is returning in case of any errors.
If I need to create text files, or sockets or anything, so be it.
I kow I´m not been very clear in what the app will do, but as I said, I´m learning on my own, so I´m making my own homework, this is just somethig that I thought it be nice to star with.
Thanks.
I´ve been working with mysql in both, linux and windows.
But I have to start the server from the comand line.
I don´t like opening the CLI every time that I want to start or stop the server.
So I would like to make a small GUI app (I have the tools for the GUI already) that will let me with the click of a button start or stop the server at my will.
Plus, I want to be able to pass some arguments to the server, like user & pwd.
Sometimes there will be some errors starting the server and sometimes not.
So I would require two things:
a) to be able to pass this arguments to mysql server.
b) be able to see the answer that the mysql server is returning in case of any errors.
If I need to create text files, or sockets or anything, so be it.
I kow I´m not been very clear in what the app will do, but as I said, I´m learning on my own, so I´m making my own homework, this is just somethig that I thought it be nice to star with.
Thanks.
![]() |
Similar Threads
- Serial Port Sniffer (Python)
- Passing a string array reference problem (C++)
- Web Graphic Programs....Design? (Graphics and Multimedia)
- article on affiliate programs (Advertising Sales Strategies)
Other Threads in the C++ Forum
- Previous Thread: linking a .exe to a pushbutton
- Next Thread: How to delete a data structure in Builder 6.0?
| Thread Tools | Search this Thread |
api array based binary bitmap c++ c/c++ calculator char char* class classes code coding compile console conversion count database delete deploy desktop developer directshow dll download dynamic dynamiccharacterarray email encryption error file forms fstream function functions game givemetehcodez google graph gui homeworkhelp iamthwee ifstream input int java lib linkedlist linker linux list loop looping loops map math matrix memory multiple news node number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg sorting string strings temperature template templates test text text-file tree unix url variable vector video visualstudio win32 windows winsock word wordfrequency wxwidgets





