is it possible to provide an activex wrapper for a .Net control,
e.g. written as C++ MFC or ATL class?

--
christoph.w

Re: activex wrapper for a .net control by Francisco

Francisco
Tue Jul 19 03:17:46 CDT 2005

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

"christoph" <christoph@discussions.microsoft.com> escribió en el mensaje
news:0FB309DD-8B26-4608-8785-8F8C8E561E06@microsoft.com...
> is it possible to provide an activex wrapper for a .Net control,
> e.g. written as C++ MFC or ATL class?
>
> --
> christoph.w



Re: activex wrapper for a .net control by christoph

christoph
Tue Jul 19 03:30:01 CDT 2005

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
--
christoph.w


"Francisco Garcia" wrote:

> 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
>
> "christoph" <christoph@discussions.microsoft.com> escribió en el mensaje
> news:0FB309DD-8B26-4608-8785-8F8C8E561E06@microsoft.com...
> > is it possible to provide an activex wrapper for a .Net control,
> > e.g. written as C++ MFC or ATL class?
> >
> > --
> > christoph.w
>
>
>

Re: activex wrapper for a .net control by Francisco

Francisco
Tue Jul 19 04:08:50 CDT 2005

It should work but, in any case, you can write an ActiveX control with
Managed Extensions for C++, and use your managed control.

"christoph" <christoph@discussions.microsoft.com> escribió en el mensaje
news:63953555-01E9-45A6-A60E-0185CEF3DC28@microsoft.com...
> 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
> --
> christoph.w
>
>
> "Francisco Garcia" wrote:
>
>> 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
>>
>> "christoph" <christoph@discussions.microsoft.com> escribió en el mensaje
>> news:0FB309DD-8B26-4608-8785-8F8C8E561E06@microsoft.com...
>> > is it possible to provide an activex wrapper for a .Net control,
>> > e.g. written as C++ MFC or ATL class?
>> >
>> > --
>> > christoph.w
>>
>>
>>



RE: activex wrapper for a .net control by christoph

christoph
Tue Jul 19 04:42:02 CDT 2005

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

--
christoph.w


"christoph" wrote:

> is it possible to provide an activex wrapper for a .Net control,
> e.g. written as C++ MFC or ATL class?
>
> --
> christoph.w

Re: activex wrapper for a .net control by Herfried

Herfried
Tue Jul 19 09:47:12 CDT 2005

"christoph" <christoph@discussions.microsoft.com> schrieb:
> is it possible to provide an activex wrapper for a .Net control,
> e.g. written as C++ MFC or ATL class?

ActiveX control containers that support .NET controls
<URL:http://support.microsoft.com/?scid=kb;EN-US;311334>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>