From: vanalex on
Hello everybody!
I'm trying to embed media player in my pocket pc application and found alex
feinman's article about hosting activex controls in a compact framework
application. I got stuck in his words below where he uses aximp to create the
source and some dlls from windows\system32\wmp.dll:

"The biggest importance to your project is its ability to produce the
Interop code in its source format. If you run the following command line,
AxImp.exe C:\WINDOWS\system32\wmp.dll /source, it produces three files:

* AxWMPLib.cs
* AxWMPLib.dll
* WMPLib.dll

Why do you want the source? If you look at the AxWMPLib.dll in the ILDAsm
tool, you can see that it is compiled against the desktop computer versions
of MSCORLIB and System.Windows.Forms. Obviously, you cannot use the AXIMP
generated version of AxWMPLib.dll. But, you can compile the source file
against the .NET Compact Framework libraries and get an assembly that you can
use on the device."

How can i compile a source against compact framework. Do i have to add it in
my compact framework project and just debug it and that's all? Or there is a
different procedure to do that?

I also thought of an another kind of solution. If i can't embed media player
in compact framework maybe i could embed it on a asp mobile web form and call
that asp page via a webbrowser component whenever i want to. Any ideas about
that? Thank you in advance for reading my post and for spending your time
with me...