View Full Version : can i be of any help?
nicholas_yin
5th November 2009, 03:07 AM
i reckon a majority of programs/applications here are developed with technologies like c++/java. however, as a 6+ years developers in .NET, i'm wondering if anyone might want to find ppl talking about .NET stuff and developing some stuff with .NET framework?
dunno if this is the right place to say this. sorry if it's bothering.
welki1979
17th November 2009, 05:44 PM
I could do with a bit of a hand with my first ever vb.NET app if you have a spare minute....
I managed to 'lay my hands on' a copy of VS2008 and have installed the SDK's from M$ and have been messing about with it for about 2 months now with some success.
I've managed to program a simple alarm clock app which uses a SDF database for the alarm functions which works well (but still needs more work before I release it).
The main problem I have right now is that I cannot get the phone to wakeup from a standby state when the alarm is supposed to sound (as all programs are suspended when the device goes into standby).
I found this article on MSDN (http://msdn.microsoft.com/en-us/library/ms913957.aspx) about the 'CeRunAppAtTime' function and have placed it in my code with a calculation for the milliseconds needed (until wakeup occurs) The milliseconds-until-wakeup are calculated using the hours and minutes between the current time and the set alarm time, converted to Integers using the built in time functions of VB.
The problem is that this does not seem to wake the device from standby when it's supposed to.
I've scoured the web for any info on this but have been stuck at this stage for about 3 weeks now, messing with the code so much I've lost track of what I've tried.
Is there any alternative to this function call or am I stuck trying to work it out?
I would post that section of my code but it's on my other PC which I can't get to right now....sorry.
godefroi
17th November 2009, 08:24 PM
I think you'll find the answers you're looking for here:
http://www.koushikdutta.com/2008/07/cerunappattime-cesetusernotificationex.html
burtcom
17th November 2009, 10:31 PM
A while back I found a c# compiler that worked ON THE DEVICE -- it was totally cool to compile and mess around with c# on the phone.
That compiler only supported the compact framework 1.0, and the developer seemingly disappeared off the face of the earth without releasing his source.
It would be cool if someone knowledgeable soul could make a version that supports CF 3.5.
Understand that there was no IDE here, you simply loaded your c# source into it, told it to compile, and you got an EXE.
welki1979
18th November 2009, 01:55 AM
I think you'll find the answers you're looking for here:
http://www.koushikdutta.com/2008/07/cerunappattime-cesetusernotificationex.html
Thanks for the link but I'm not quite sure that this gives me what I'm after.
I don't want to have to schedule a system notification to wake the device as other devs on other sites have reported issues with the dialogue and not being able to assign a sound to it other than the default one for notifications.
CeRunAppAtTime would do the job but I just can't get it to work.
Anyone got any working VB code using this API?
welki1979
5th February 2010, 11:15 PM
...problem finally solved and the Alarm clock is available for download here:
http://forum.xda-developers.com/showthread.php?p=5551369#post5551369
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.