c# - How to invoke dll method on a different machine? -


let's have c dll functions like:

void beep(); char* foo(char** whatever); 

now want able put dll on 1 machine (server) , call different machine (client). client can c# dll (and proxy server) needs regular c. ideal on client:

mydllaccess remote = proxylib.getremotedll("192.168.1.10:12100", "mydll.dll");  remote.execute("beep"); // other machine beeps (uses getprocaddress find function) 

i know i'm reinventing com, etc, but..... there way? if not, why not , simplest way want since have dll?

edit: needs work linux shared library, e.g. proxylib.getremote("192.168.10.12100", "mything.so")

if need work across different oses, have hard time doing in pretty generic manner. can search "platform independent apis" in wikipedia article: inter-process communication idea. of find heavyweight.

one simple way write ad-hoc http rest server (possibly json or xml interchange format). has advantage of being simple, , able access using os decent http stack (including mobiles).


Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -