[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.remoting

Re: Help From C# to Vb.net

Brian Vallelunga

8/23/2004 9:52:00 PM

..NetHelpWanted wrote:
> Hi,
>
> Had anybody converted the example of allen at
>
> http://glacialcomponents.com/ArticleDetail/RemoteO...
>
> To vb.net if so can you post the code?
>
Is there any particular part that you're having trouble with? He creates
an abstract base class that derives from MarshalByRefObject in a shared
dll. In VB.NET "abstract" is "MustInherit."

Then he creates creates a class for the server the derives (inherits)
from the shared base class. He creates the implementation of the Test()
function. In C# the keyword "override" is used. I think it is
"Overrides" in VB.NET.

Step 3 is mostly XML, except for the creating of the channel. This is
virtually VB.NET code -- just take off the semicolons!

Step 4 should be pretty basic. VB.NET doesn't use "typeof()" in this
situation so you need to use GetType() instead.

Any other questions?