PC Review


Reply
Thread Tools Rate Thread

Delegates and callbacks in CF 2.0

 
 
Mark Erikson
Guest
Posts: n/a
 
      29th May 2005
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/P...6-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/de...e&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

 
Reply With Quote
 
 
 
 
Alex Feinman [MVP]
Guest
Posts: n/a
 
      30th May 2005
Mark,

I've modified your code and sent it to you by email.

--
Alex Feinman
---
Visit http://www.opennetcf.org
"Mark Erikson" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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/P...6-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/de...e&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
>


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced use of delegates to automatically disconnect delegates from a set of events kristian.freed@gmail.com Microsoft C# .NET 2 18th Nov 2006 09:56 PM
PinvokeDLL or delegates or ??? ... Calling C# delegates from C++ as CALLBACK Roland Rehmnert Microsoft Dot NET Compact Framework 1 20th Feb 2005 12:21 PM
Events, delegates, callbacks and methods Michael McDowell Microsoft C# .NET 8 29th Jan 2004 03:40 PM
Hooks, delegates and callbacks Chris Tacke, eMVP Microsoft C# .NET 9 6th Oct 2003 10:52 PM
Hooks, delegates and callbacks Chris Tacke, eMVP Microsoft VC .NET 9 6th Oct 2003 10:52 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:08 AM.