MSDN Webcast on hosting ActiveX controls



Hi!
I found a great webcast on the Net presenting how to host ActiveX controls in
CF 2.0. It was also possible to download a source code project that could be
deployed on VS 2005.

It can be found here:
http://blog.opennetcf.org/afeinman/CommentView,guid,1dfc3c39-d3cc-4faa-b5f6-cb5c9aed61dd.aspx


I have downloaded and deployed the project on both a Pocket PC 2003 SE
Emulator and a Windows Mobile 5.0 Emulator using Visual Studio 2005 Beta 2.
But I cant get it to work!

Everytime I press the Media Player Demo-button I get the same error:

"Method not found: AllocHGlobal
System.Runtime.InteropServices.Marshal."

I have renamed the two methods:

Marshal.AllocHGlobal() ==>
Marshal.AllocCoTaskMem()

and

Marshal.FreeHGlobal() ==>
Marshal.FreeCoTaskMem()

but it still complains that "Method not found: AllocHGlobal..."

Have someone got the same problem or got this to work? Alex?

Have I forgotten to change or install anything.

Do I have to install something more or do any other configurations on the
emulator to get the project to work?

Best Regards
Andreas Viklund
SWeden


--
Message posted via http://www.dotnetmonster.com
.


Loading