P
Polad Mirzayev
Hi there,
I'm working on the .NETCF 2.0 application for PocketPC and I have a third
party ActiveX DLL (AXISMEDIACONTROL.dll) that I need to use on my form. I
use AxImp.exe tool to generate C# source of the Interop library of the DLL.
It creates a class that is derived from AxHost. Everything works just fine
and I even get my [AxAxisMediaControl] ActiveX control appear on the VS 2005
Toolbox with all the properties and events. The project also compiles
without any errors when I "Build" it but as soon as I run it on either the
"Win Mobile 5.0" emulator or the real device it throws this:
--------------------------------------------------------
COMException was unhandled
System.Runtime.InteropServices.COMException: {"Class not registered"}
"at System.Windows.Forms.AxHost.CoCreateInstance()
at System.Windows.Forms.AxHost.CreateWithoutLicense()
at System.Windows.Forms.AxHost.CreateInstanceCore()
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo()
at System.Windows.Forms.AxHost.GetOcx()
at System.Windows.Forms.AxHost..ctor()
at System.Windows.Forms.AxHost..ctor()
at AxAXISMEDIACONTROLLib.AxAxisMediaControl..ctor()
at DeviceApplication1.Form1.InitializeComponent()
at DeviceApplication1.Form1..ctor()
at DeviceApplication1.Program.Main()"
--------------------------------------------------------
By the way I was doing everything according to the foloowing article
"Hosting ActiveX Controls in the .NET Compact Framework 2.0":
http://msdn.microsoft.com/library/d...n-us/dnnetcomp/html/host_activex_controls.asp
Also another strange thing is I get the same error when I try to run the
sample project that comes with the article though it also compiles without
any errors.
I'm really stuck at this point as it seems to me that I'm doing everything
right.
I'd really appreciate any help with this matter.
Thanks in advance,
Polad.
I'm working on the .NETCF 2.0 application for PocketPC and I have a third
party ActiveX DLL (AXISMEDIACONTROL.dll) that I need to use on my form. I
use AxImp.exe tool to generate C# source of the Interop library of the DLL.
It creates a class that is derived from AxHost. Everything works just fine
and I even get my [AxAxisMediaControl] ActiveX control appear on the VS 2005
Toolbox with all the properties and events. The project also compiles
without any errors when I "Build" it but as soon as I run it on either the
"Win Mobile 5.0" emulator or the real device it throws this:
--------------------------------------------------------
COMException was unhandled
System.Runtime.InteropServices.COMException: {"Class not registered"}
"at System.Windows.Forms.AxHost.CoCreateInstance()
at System.Windows.Forms.AxHost.CreateWithoutLicense()
at System.Windows.Forms.AxHost.CreateInstanceCore()
at System.Windows.Forms.AxHost.CreateInstance()
at System.Windows.Forms.AxHost.GetOcxCreate()
at System.Windows.Forms.AxHost.TransitionUpTo()
at System.Windows.Forms.AxHost.GetOcx()
at System.Windows.Forms.AxHost..ctor()
at System.Windows.Forms.AxHost..ctor()
at AxAXISMEDIACONTROLLib.AxAxisMediaControl..ctor()
at DeviceApplication1.Form1.InitializeComponent()
at DeviceApplication1.Form1..ctor()
at DeviceApplication1.Program.Main()"
--------------------------------------------------------
By the way I was doing everything according to the foloowing article
"Hosting ActiveX Controls in the .NET Compact Framework 2.0":
http://msdn.microsoft.com/library/d...n-us/dnnetcomp/html/host_activex_controls.asp
Also another strange thing is I get the same error when I try to run the
sample project that comes with the article though it also compiles without
any errors.
I'm really stuck at this point as it seems to me that I'm doing everything
right.
I'd really appreciate any help with this matter.
Thanks in advance,
Polad.