Rohith,
Do you need the dll to run on the remote machine or do you need it to
run on the local machine?
If you need it to run on the local machine, then you should just
distribute it with your application and call it through the P/Invoke layer.
If you need it to run on the remote machine, then you have a few
options. The first would be to create a component derived from
ServicedComponent that will act as a server in COM+, and then make the
remote call from the client machine. The COM+ component would then make the
call to the dll on the remote machine.
You can also use remoting to do this as well, or expose a web service
from the remote machine. In the end, you will have to wrap the call somehow
in a technology that will allow the remote call.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Rohith" <Ro****@discussions.microsoft.com> wrote in message
news:9C**********************************@microsof t.com...
I need to import dlls that are present in the remote machine. Its a dll
written in C that exposes methods. I want to import that dll in my C#
application. But that dll is not present in the local machine. Its not a
webservice. I need something like remote method invocation(but dlls).