By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,720 Members | 2,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,720 IT Pros & Developers. It's quick & easy.

How to communicate between two software where both are writen in Visual C++ 6.0

P: 4
i am looking the way to communicate two software where writen in Visual C++ 6.0..both software hv COM, DLL and .exe file..
hope that anyone of u all can help me out..
thanks a lot..
Aug 9 '07 #1
Share this Question
Share on Google+
5 Replies


gpraghuram
Expert 100+
P: 1,275
i am looking the way to communicate two software where writen in Visual C++ 6.0..both software hv COM, DLL and .exe file..
hope that anyone of u all can help me out..
thanks a lot..
If u want both programs shuld communicate then u shuld use socket communication .
By the way have u tried anything from ur side?

Raghuram
Aug 9 '07 #2

P: 4
the two software that i mentioned are in the same PC..if i do not want use socket communication to communicate those software, anything method that i can use..?? can i ask first software to call the function in second software, seen both of them are writen in Visual C++ 6.0..??
Aug 10 '07 #3

P: 3
What you're trying to do is IPC (Inter Process Communication)

http://en.wikipedia.org/wiki/Inter-p..._communication

Piping would've been the easiest to use if you're developing in a POSIX machine.

Using sockets is your best option. If you don't want to use sockets then I'd suggest that you use a file wherein:

App A -> writes a file containing a command that App B understands
App B -> reads the file and decides on what to do

Is there any reason why you don't want to use sockets?
Aug 10 '07 #4

P: 93
If u want both programs shuld communicate then u shuld use socket communication .
By the way have u tried anything from ur side?

Raghuram
Hi,

I had the impression that Socket programming is for establishing
communication across different servers and mor over in
Unix or Linux environmet.
I am curious to know whether it works in windows too, because
the op has mentioned that both softwares are developed in Visual C++ 6.0

Regards,
Girish.
Aug 10 '07 #5

P: 4
Thank replying..
About the question why i don't want use socket communication..
because it will take time for my App A and App B to open comm port, write data and close comm port..
Although it may just taking 10 or 20ms, but it will make my App went slow..
it also same reason why i didn't choose use text file to communicate..
but if App A can straight assign value or data to App B like we can assign a value from function 1 to function 2 in the same app..then time is not a problem..
is it can't just call App B's function from App A..??
Aug 13 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.