I have a DLL that gets data from some input ports in a I/O card. This DLL and the card are in the server and the dll is encapsulated in a OCX that generates events when a value in the input ports changes. I have two clients in other computers wanting to know if any changes arises in the ports. The DLL has a common data segment so when I run several aplications in the server everything goes OK. But when I try to do the same in a client terminal it creates a local copy of the DLL and the datas are not updated. So I need to make a pipe using RPC in order to actualize the data in the remote OCXs, so that when a client runs it application with the OCX included in it, the appropiate events are generated anytime changes in the imput ports arise.
What I need is a piece of code in C that works in W2k and that allows me to get updated data from the dll in the server. I beleive that the best way to do this is using RPC and implementing two pipes throught wich server can actualize data to the clients.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.