[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: Passing VB6 object to remote object fails

Ken Kolda

8/31/2004 9:46:00 PM

The only way I know of to do this is to create a MarshalByRefObject wrapper
class that holds your VB6 object and forwards method calls to it. Then just
remote that class.

Ken


"JSB" <JSB@discussions.microsoft.com> wrote in message
news:D6181340-B7C6-4EEF-95C4-8CAC90A19130@microsoft.com...
> I understand that an object passed to a remote object must either derive
from
> MarshalByRefObject or be Serializable...and a VB6 object doesn't satisfy
this
> criteria.
>
> I'm wondering if there are other approachs that would allow me to pass the
> VB6 object to the remote object, for example: custom marshaling, interop
> marshalling, subclassing Formatter class, etc.
>
> or do I have to abandon Remoting until I convert the VB6 code to VB.NET or
C#?
>
> Thanks,
> Jim