Thanks you rmacias for your contribution.
Hi Terry,
Yes, the article you're refering to in the first post is now obsolete for
Visual Studio 2005. We can now use a more simpler way to do this. We use
ComClassAttribute to simply the process of exposing COM components from
Visual Basic 2005. COM objects are very different from .NET framework
assemblies; without the ComClassAttribute, you need to follow a number of
steps to generate a COM object from Visual Basic 2005. For classes marked
with ComClassAttribute, the compiler performs many of these steps
automatically.
#ComClassAttribute Class
http://msdn2.microsoft.com/en-us/library/microsoft.visualbasic.comclassattri
bute.aspx
Although you can also expose a class created with Visual Basic as a COM
object for unmanaged code to use, it is not a true COM object. When a COM
client calls a .NET object, the common language runtime creates the managed
object and a COM Callable Wrapper (CCW) for the object. Unable to reference
a .NET object directly, COM clients use the CCW as a proxy for the managed
object. COM callable wrappers are invisible to other classes running within
the .NET Framework.
#COM Callable Wrapper
http://msdn2.microsoft.com/en-us/library/f07c8z1c.aspx
From above article, you will see that other .NET objects will still using
the same way to call the .NET object which is exposed as COM component.
You may also take a look at following resource center about VB Fusion:
#Visual Basic 6.0 Resource Center: VB Fusion
http://msdn.microsoft.com/vbrun/vbfusion/
As for your last post about that not seeing the assembly in Visual Studio
IDE, I will reply in the separate thread you just posted.
Hope this helps. If anything is unclear, please feel free to post here.
Regards,
Walter Wang
Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.