i developed 2programm that the first one is in C and the second one is in c#.and now i have to send some string text from c to c#.how can i do that in c ?
i developed 2programm that the first one is in C and the second one is in c#.and now i have to send some string text from c to c#.how can i do that in c ?
you asked almost the exact same question in the C# forum several days ago. has your problem changed so much in that time that my suggestion on that thread will not be satisfactory?
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
thank you for your answer(it was too general for me because i'm a beginner in c) in that thread ,i cant use "a socket or rewrite the udp socket code in c#".it must be in c.and because i dont have much time to solve this problem then i saw there is no other answer ,and i decided to say my question in c board to get a better answer .
Last edited by smahdi1991; 04-02-2014 at 12:05 AM.
why can you not use a socket? you've already written one for the UDP communication. do you have access to the source code for both programs? if so, then it should be easy. sockets are insanely easy in C#/.Net.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
my project is a sniffer.because the project make me to do this .if if there is no way to do an ipc between c and c# for sending captured filed from c to c# then i can use another method.
if you're running on windows, you can use a named pipe, or on any platform you can output to a file and have the C# program tail that file.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
can you please tell a simple example for using in c and readit from c#?
File reading and writing is one of the first things they teach in any language. This site has a pretty good tutorial on file input and output.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
thank you elkvis ,but i mean an example about named pipe.
but thanks alot to you to help me and say there is something like named pipe in windows to solve my problem
i found a realy good example hereit is: Inter-Process Communication between C# and C++ using named pipes - CodeProject
.my problem almost solved.