MSDN Webcast on hosting ActiveX controls

  • Thread starter Thread starter Andreas V via DotNetMonster.com
  • Start date Start date
A

Andreas V via DotNetMonster.com

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
 
From memory the AllocHGlobal etc functions were added in after Beta 2, so
you'll need a more recent build of VS2005, they were present in July CTP and
onwards. If you are an MSDN subscriber you can get the RTM build now and
it'll hit the shelves next week.

Peter
 
Back
Top