Skip to content

DLL

Sonia Sardana

Asked Jun 9, 2008, 9:49 AM EDT1 answer
Share
LinkedInX

Hey frnds, I create DLL as follows-


Public Class Class1
    Public Function add(ByVal x As Integer, ByVal y As Integer)
        add = x + y
    End Function
End Class


[b]
Calling DLL[/b]
Imports ClassLibrary1
Module Module1

    Sub Main()
        Dim sum As Integer
        Dim obj As New Class1
        sum = obj.add(10, 20)
        Console.WriteLine("Sum=" & sum)
        Console.ReadLine()
    End Sub

End Module

Above DLL is working Correctly.I want to ask that Suppose there are two computers  NODE1 & NODE2 in Networking. Suppose we create the above prog.in NODE1 ,Is it possible to call DLL in NODE2. Without writing the above Program.
   If Yes,Then How???

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Mike Gold
    0
    you can use .NET remoting for this.  One object has the base MarshalByRefObject.  You will need to put other things in place to do this, such as config files.  I advise you to read about ".NET Remoting" here on C# Corner to get started.
    0