I wrote a touchpad program in C that provide x,y information of the touchpad. Now, I want to transfer that X,Y values to a C# program. I tried to write the information to a file and read using C#. But, as C program blocked the text file, I was getting the following error:
The process cannot access the file 'C:\simpletpinfo\data.txt' because it is being used by another proc开发者_如何学编程ess.
I don't have much idea about the socket programming and i couldn't run the examples of socket programming that are in the web. (I am using visual studio 2008, may be that doesn't support sys/socket.h and other files). please help me in this regards.
I think what you are looking for is Interprocess Communication, IPC. There are many ways, this page describes all the different ways on Windows and when to use which.
In my opinion I think you should consider using Data Copy.
精彩评论