Using .Net from VB6 ActiveX control
- Folks,
The scenario I am working currently is as follows:
I have an ActiveX Control written with VB6 named ABC.OCX, and I want to use a .net class to carry out some tasks that the activeX control needs. So I have written a .net Assembly named MyDotNetAssembly that contains the class MyDotNetClass with it's interface IMyClassInterface. after than, I have checked the build option "Register for COM interop" and used this assembly as a reference assembly form my ActiveX vb project. Than I have created the internet-style CAB file using the "Setup and deployment wizard" of VB6, and the generated output directory contains a sample HTML file that hosts the ActiveX and when I run this HTML form browser it works!!.
I have then used the ActiveX control inside my ASP.net application's page (using the regular object tag inside html) and it works fine onto the development box.
So far so good.
Now, as soon as I try to access that page from outside of Development box, it doesn't render the activeX control at all. No error.....nothing!!! During the first hit, it asked me to install the active X, and I have installed that nice. I have made the web site as a trusted site in my VISTA machine. but it doesn't render anything for that activeX neither shows any errors..?
Can anyone guess anything..? I would greatly appreciate any helps.
Doing stuff with .net
答案
Hi Moim, this forum is for software developers who are using the Open Protocol Specification documentation to assist them in developing systems, services, and applications that are interoperable. The Open Protocol Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx. Since your post does not appear to be related to the Open Protocol Specification documentation set we would appreciate it if you could try the '.NET Base Class Library' forum at http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/threads/ instead to find the information you are looking for. Thanks!
FYI - I will post this information on your duplicate post at http://social.microsoft.com/Forums/en-US/interopstandards/thread/718a3602-8b97-4ce8-9191-e3d820c9422a (VB6 ActiveX Control doesn't work while using .NET from the ActiveX control.).
Regards,
Bill Wesse
Escalation Engineer- 已标记为答案Bill Wesse MSFT版主2009年3月16日 12:53
- 已编辑Alex MorrillMSFT, 版主2009年3月18日 15:26removed Windows reference - forum is for more general interoperability
全部回复
Hi Moim, this forum is for software developers who are using the Open Protocol Specification documentation to assist them in developing systems, services, and applications that are interoperable. The Open Protocol Specifications can be found at: http://msdn2.microsoft.com/en-us/library/cc203350.aspx. Since your post does not appear to be related to the Open Protocol Specification documentation set we would appreciate it if you could try the '.NET Base Class Library' forum at http://social.msdn.microsoft.com/Forums/en-US/netfxbcl/threads/ instead to find the information you are looking for. Thanks!
FYI - I will post this information on your duplicate post at http://social.microsoft.com/Forums/en-US/interopstandards/thread/718a3602-8b97-4ce8-9191-e3d820c9422a (VB6 ActiveX Control doesn't work while using .NET from the ActiveX control.).
Regards,
Bill Wesse
Escalation Engineer- 已标记为答案Bill Wesse MSFT版主2009年3月16日 12:53
- 已编辑Alex MorrillMSFT, 版主2009年3月18日 15:26removed Windows reference - forum is for more general interoperability

