PDA

View Full Version : today screen Plugin ?


tinkyawoo
22nd May 2006, 08:30 AM
hi

any one know how to code my own Today Screen Plugin?
i m a programmer.

i want to create my own usefull Today Screen Plugin like Clock.
short cuts. and timer..

i can only develop application for O2, but i dont know how to make
Today Screen

levenum
22nd May 2006, 08:55 AM
Hi tinkyawoo!
I assume you program in c++?

Today plug-in is basically a DLL that exports two functions with fixed ordinals.
InitCustomItem - the important one, and another (don't remember the name) for options dialog (if you want one).
There is an article on this at www.pocketpcdn.com.

You can also use my code published here for reference:
http://forum.xda-developers.com/viewtopic.php?t=45084

Good luck!

tinkyawoo
22nd May 2006, 09:12 AM
thanks. i will check it

vijay555
22nd May 2006, 11:27 AM
tinkyawoo: if you're a programmer, I suggest checking out the SDK; it has a good example framework for a plugin, although watch out for the repainting bug in the sample.

Otherwise, read levenum's source code as well. It's excellent. You can learn a lot.

V

JonTheNiceGuy
24th May 2006, 03:25 PM
Would it not be possible to write a small dll which can be controlled from VB.NET or C#.net to display certain things?

If this was released (under BSD or another permissive licence) then we could all use it to develop stuff, which would help those of us who's first language is Basic ;)

cgrillo
24th May 2006, 03:44 PM
Unfortunately you can't write today screen DLLs in .Net.

There is a lot of info on the microsoft web site - if u care to search.
They do - however - give you a means of writing a EVC DLL that calls a .net application for the today screen info , but I haven't tried it.

Charlie Grillo

farseer
31st May 2006, 05:21 PM
What do you mean by "controlled from". Do you want a .NET app to be able to effect the plug in somehow? If so, it is possible...since .NET is managed code and the plug-in is a native dll, the simplest way to have the two communicate is via windows messages.
You can do the following:

-Register a custom Message that your .NET app will broadcast to your plug-in(s)
-in your DLL WndProc procedure, listen for that message and act accordingly

Alternatively, you can have the dll do the same thing, but ofcourse, your .net app would have to be running to recieve that message (unless you have the dll launch it directly).

Would it not be possible to write a small dll which can be controlled from VB.NET or C#.net to display certain things?

If this was released (under BSD or another permissive licence) then we could all use it to develop stuff, which would help those of us who's first language is Basic ;)