Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: DCOM


Message #1 by "Mark Roworth" <mark.roworth@b...> on Wed, 30 Oct 2002 09:42:21 -0000
Marco,

Would the error "Variable Uses an Automation Type Not Supported in Visual
Basic" be a different symptom of a similar cause? Thanks,

Mark

-----Original Message-----
From: Marco Straforini [mailto:marco.straforini@c...]
Sent: 30 October 2002 20:46
To: professional vb
Subject: [pro_vb] RE: DCOM


> If anyone is interested, it is because I was setting a property on an
object
that was created on the client, but the setting was done on the server.
Eeek!

It is not really that simple. VB implements COM in apartment mode,
and in this model you cannot pass components references across
threads, because an object can be accessed only in the thread that
created it. Confused? Consider that also that is a simplification.
A complete description of the problem is in the only VB book that
still remains on my desk: "Developing COM/Activex Components with
VB6" by Daniel Appleman (SAMS Press)

Marco

---
Visual C# - A Guide for VB6 Developers
This book will make it easy to transfer your skills
from Visual Basic 6 to C#, the language of choice
of the .NET Framework.
http://www.wrox.com/ACON11.asp?ISBN=1861007175&p2p0059



  Return to Index