Calling .NET _components_ (akin to ActiveX/COM .DLLs or .EXEs) via COM
wrappers is supported through interop. Using visual .NET _user controls_
(akin to ActiveX .OCX) with a COM wrapper is NOT supported, from what I
understand. I skimmed that article you linked to and nowhere is there a
user control used as the example. The ActiveX Control (an OCX vs just a
.DLL or .EXE) seems to be a superset of plain old COM component
functionality. The "extra" stuff required to make a visual control work
does not seem to be fully supported in .NET interop. The only place it
seems to be supported is when hosting the control in Internet Explorer.
Here's a few links to support what I'm saying:
http://www.ondotnet.com/pub/a/dotnet/2003/01/20/winformshosting.html
http://www.c-sharpcorner.com/Code/2003/March/ActiveXInNet.asp
http://www.eggheadcafe.com/ng/microsoft.public.dotnet.framework.interop/post2022
8888.asp
Here's a killer link on a post from Microsoft (its 2001, but I haven't heard
anything different from MS since then):
http://discuss.develop.com/archives/wa.exe?A2=ind0107b&L=dotnet&F=&S=&P=16992
I have this same problem. It's probably describing some of the
programmability issues Microsoft mentioned in the previous link:
http://www.dotnet247.com/247reference/msgs/30/150026.aspx
> Hi Mike,
>
> If you check this site:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/c
allnetfrcom.asp,
> i believe that it is supported and was intended to allow developers to slowly
> migrate from COM to .NET. Thanks.
[quoted text clipped - 12 lines]
> > NotImplementedException to be thrown in Visual FoxPro (I'm assuming the same
> > thing is happening in VB except that VB handles the exception differently).
Michael--J - 29 Mar 2005 02:55 GMT
I see what you mean Mike: User Controls created in .NET cannot be "called"
from VB6 using COM. Ok. Fortunately that is not what we are trying to
achieve. We are only calling a .NET dll from VB6 using COM.
Would you have any idea as to what causes the problem i mentioned in my
fisrt post - given that we are calling a .NET dll rather than a .NET User
Control? Thanks.
Michael--J.
> Calling .NET _components_ (akin to ActiveX/COM .DLLs or .EXEs) via COM
> wrappers is supported through interop. Using visual .NET _user controls_
[quoted text clipped - 50 lines]
> > > thing is happening in VB except that VB handles the exception
> differently).