Dear all,
I downloaded and ran the example for hosting ActiveX controll in Compact Framework. The WMP and Flash example work great.
I was wondering through about some errors i have been getting with my own activeX controll. Well no my ActiveX but an active i am trying to put in my application.
I was trying to use the AxImp tool on this ActiveX controll i have and i get the following error:
C:\Program Files\Microsoft Visual Studio 8\VC>aximp C:\svnwork\Compact\IMPlayer.
dll /source
AxImp Error: Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A
(TYPE_E_CANTLOADLIBRARY))
I cant work out why this is not working.
I have the activeX control running inside a normal C# project. I call the fuctions from the ActiveX like this:
System.
Environment.CurrentDirectory = (String)Microsoft.Win32.Registry.GetValue("HKEY_LOCAL_MACHINE\\SOFTWARE\\Application\\App Folder", "DataPath", System.Environment.CurrentDirectory);
And then:
[DllImport("IMPlayer.dll",CharSet=CharSet.Ansi)]
public static extern int IMC_InitViewer (IntPtr hWnd, int isFullScreen);
After that i can call the function in my code.
What is really funny is that i cant add a refence to the DLL through add references. I am not sure why VS2005 wont add reference to it.
Is there anything you would suggest to make this work properly?
I would really apreciate your help.
Sincerely
Dan