Philluminati
asked on
Simple Intercommunication - C/C++ and C#
I am, very soon, going to be writing a web application in C#. My application will need to process databases with upto 1 million records in and do some interesting tasks with the data. Anyway I feel that writing it in C or C++ would be a better choice since time is a factor. What I would like is the ability for a user to start the process off, logout and log back in a few hours later to check on the status.
I understand how to start another process off, my question is how can I have the applications communicate? It's effectively a one directional process. (Lets say that each time the percentage changes in the C app that I want to tell the C# app that it's changed)?
Can I (in C) do this:
printf("%d",myProgress);
and then catch the readout in C#?
I think this is enough to explain my problem
Thanks in advance!
Philluminati
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I did actually solve this issue by calling the C app and passing it a stream for it to use. Then I could catch the printf statements and process them.
The printf statements merely printed the progress as a number and the calling C# app could just reading the printf statements as they happened.
Regards,
Phillip Taylor