G Guest Jul 19, 2005 #1 is it possible to provide an activex wrapper for a .Net control, e.g. written as C++ MFC or ATL class?
is it possible to provide an activex wrapper for a .Net control, e.g. written as C++ MFC or ATL class?
F Francisco Garcia Jul 19, 2005 #2 Hi, Use regasm.exe .NET Framework SDK utility to register your .NET control as if it were an ActiveX control, and use it from C++ as usual. Hope it helps, Fran Garcia
Hi, Use regasm.exe .NET Framework SDK utility to register your .NET control as if it were an ActiveX control, and use it from C++ as usual. Hope it helps, Fran Garcia
G Guest Jul 19, 2005 #3 Sorry, but it's not so easy. This will not work for any ActiveX host, e.g. the .Net host itself!! It's necesary to write a COM wrapper which hosts the .net control itself
Sorry, but it's not so easy. This will not work for any ActiveX host, e.g. the .Net host itself!! It's necesary to write a COM wrapper which hosts the .net control itself
F Francisco Garcia Jul 19, 2005 #4 It should work but, in any case, you can write an ActiveX control with Managed Extensions for C++, and use your managed control.
It should work but, in any case, you can write an ActiveX control with Managed Extensions for C++, and use your managed control.
G Guest Jul 19, 2005 #5 Official statement from microsoft: it is not supported to expose a .net control as ActiveX control http://msdn.microsoft.com/msdnmag/issues/01/08/interop/default.aspx
Official statement from microsoft: it is not supported to expose a .net control as ActiveX control http://msdn.microsoft.com/msdnmag/issues/01/08/interop/default.aspx
H Herfried K. Wagner [MVP] Jul 19, 2005 #6 christoph said: is it possible to provide an activex wrapper for a .Net control, e.g. written as C++ MFC or ATL class? Click to expand... ActiveX control containers that support .NET controls <URL:http://support.microsoft.com/?scid=kb;EN-US;311334>
christoph said: is it possible to provide an activex wrapper for a .Net control, e.g. written as C++ MFC or ATL class? Click to expand... ActiveX control containers that support .NET controls <URL:http://support.microsoft.com/?scid=kb;EN-US;311334>