Delegates and callbacks in CF 2.0

M

Mark Erikson

Having just gotten my hands on VS2005 Beta 2, I've been playing around
with Alex Yakhnin's NativeWindow implementation for CF 2.0
(http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=eacd2a5f-a7fb-4bce-9336-f974ea2d2e29).
Since it looks like delegates can now be used as native callbacks, I
decided to see what I can do with the native RichInk control, since
loading and saving RTF from the control requires callbacks as described
in
http://msdn.microsoft.com/library/d...ce30/html/richink.asp?frame=true&hidetoc=true.


I based a NativeRichInk class on the NativeButton/Textbox classes in
Alex's sample solution, and the RichInk control shows up without any
problems. I then took the callback functions from the Inky PPC2002 SDK
sample, ported them to C#, created a delegate, went through the various
incantations necessary to set things up.. and I get nothing. As far as
I can tell, my managed callback isn't getting called. Since this is
new territory for me, I'm not really sure how to figure out why the
callbacks aren't working.

I've uploaded a zipped copy of the solution to
http://www.isquaredsoftware.com/code.php. If anyone out there has any
suggestions on how to get these callbacks to work, I'd greatly
appreciate it.

Thanks!

Mark Erikson
http://www.isquaredsoftware.com
 
Top