 |
|
 |
Hi,
I need to test your sample in my PPC project but I could not figure out which version of opennetcf you have used. My compiler keeps return me errors about unrecognized namespaces and classes belong to OPENNETCF.
Here is an example:
using OpenNETCF.Win32.notify;
Error 13 The type or namespace name 'notify' does not exist in the namespace 'OpenNETCF.Win32' (are you missing an assembly reference?)
and of course I have added OpenNETCF.Win32 reference to the project.
My aim is to build a permanent running alarm that should launch other programs whenever it's necessary
Thanks,
Samad
.Net developer from Canada
|
|
|
|
 |
|
 |
well code was for .net 1.1 equivalent opennetcf
Just did a search and found this:
What do you need to do that utilises the NotificationEgine?
CF 2.0 comes with the Notification (Microsoft.WindowsCE.Forms.Notification) class.
Here's a simple example:
Notification notify = new Notification();
notify.Caption = "Alert title";
notify.Text = "Notification text";
notify.Visible = true;
I think it would be easier if you explained what exactly you needed the NotificationEngine for which you're unsure of how to reproduce using either the Microsoft.WindowsCE.Forms.Notification class or perhaps even the OpenNETCF.WindowsCE.Notification.Notify class (use the SetUserNotification if you'd like to create a Notification bubble).
From memory v1.4 of the OpenNETCF framework contains the NotificationEngine class.
Regards,
Hermit Dave
|
|
|
|
 |
|
 |
Thank you for replaying Hermit,
I'm developing an application for .Net CF 3.5 ppc 2003
As I explained I need the alarm to run an FTP client once a month and upon updating information on database
That's it,
Thank you.
Samad.
|
|
|
|
 |
|
 |
Hi,
I have got the same problem
The type or namespace name 'OpenNETCF' could not be found (are you missing a using directive or an assembly reference?)
I try to add the reference but it does not accept it. If someone could please help me out.
ThanksShafaqat Ali
|
|
|
|
 |
|
 |
Can it run on Windows mobile 5?
Do you have any idea about 'Scheduler' for Windows mobile 5.
Thanks,
Nagaraj
|
|
|
|
 |
|
 |
well i am sure things exist in Windows mobile 5. The .net compact framework is better evolved in windows 5 (being version 2.0)
look up http://www.msdn.com/ and http://www.opennetcf.com/
I currently use Window mobile 6.1 so dont know how helpful i can be
Regards,
Hermit Dave
|
|
|
|
 |
|
 |
Hi, Plzzzz help me i can't get it started! there is something wrong with the OpenNETCF! in fact i don't really know how to add the library! plzzzzzz
Thanks!
|
|
|
|
 |
|
 |
Hi
I'd like to make a simple alarm based on this code in VS2005 and .net 2.0. I'd like to release it as open source of some kind or other. What licence (if any) is the source code under?
Anthony Steele
|
|
|
|
 |
|
 |
hey, i did not spend enough effort to bother with licensing. If my code helps you do something, please go ahead and use it. You found it useful enough is good for me
Have fun coding.
Regards,
Hermit Dave
|
|
|
|
 |
|
 |
Thanks. I will credit you in the comments
|
|
|
|
 |
|
 |
Thanks for building a better alarm, I've been thinking about doing it myself for a long time!
However, there are some possible problems. Since you're using a timer, the program need to be run in the background at all times. I've experienced with other alarm programs that this can have a noticable negative effect on battery life, I hope this is not the case with your program. The program I tried was very good, but drained my battery in just 24 hours.
Another problem is that you can't run Surrealservices' QuickClose program (link) that shuts down all programs (hidden or not). I guess this is inevitable if there REALLY is no way of deleting a previously set "RunAppAtTime".
Also, I'm guessing it autostarts at all times?
Ok, I'm gonna try it out now
--------------------
No one is perfect.
Welll, there was this guy... but we killed him.
|
|
|
|
 |
|
 |
I searched MoDaCo and there seems to be a way of setting and clearing notifications with these two OpenNETCF functions: CeSetUserNotificationEx and CeClearUserNotification.
The thread
The SDK (OpenNETCF.Win32.Notify)
Please check this out if you have the time! (I wish I did...)
--------------------
No one is perfect.
Welll, there was this guy... but we killed him.
|
|
|
|
 |
|
 |
This is the documentation for RunAppAtTime[^]
As it says there is a way to clear it after it is set. Just set RunAppAtTime to DateTime.MinValue.
I actually didn't experience draining of battery life but either way RunAppAtTime is a better way. Unfortunately I haven't gotten around to rewriting the app yet.
Regards,
Hermit Dave
http://hdave.blogspot.com[^]
|
|
|
|
 |
|
 |
I am basically a vc++ programmer for application development of Embedded systems. I am now interested in learning Embeded VC++ and WinCE Operating System.
Can u pls tell me how do i start , say initialy for mobile /pockt pc
Application development
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
 |
|
|
 |
|
 |
Hi,
Your application should prove to be very useful, thanks your for your hard work.
Why does you application require the use of the timer. When a user defines an alarm in your application it can check if it is the earliest alarm, if the alarm is earlier than any other it can use RunAppAtTime. If the alarm is later than a previous one then once the application called to run the first alarm it then use RunAppAtTime to set the next alarm time. This way you do not need to use the timer every hour.
Keep the good work coming
Tarek
|
|
|
|
 |
|
 |
Why do i require a timer control.... think of it this way... what if you set an alarm notification and didn't want it any more... if i did the way you defined it.. the only way for me to disable the already set notification would be to set a earlier one.
For that reason i am doing an hourly check and the check is also done when you create/update the alarm (i am not sure if i had set it at update, will modify it if possible). if the RunAppAtTime is only set a minute before.. you can always disable the alarm a min or so before and it will never execute.
Thanks for the kind words
Regards,
Hermit Dave
|
|
|
|
 |
|
 |
Thanks for the followup mail... it got what you meant... i will try and modify it. Might mean a slight change in logic as i currently set the recurring alarm by using a comma seperated string to store which days (1,3,4,5 etc) to execute the alarm.
Thanks once again
Regards,
Hermit Dave
|
|
|
|
 |
|
 |
Actually, not OpenCFNET but OpenNETCF
|
|
|
|
 |
|
 |
Yeah that was pretty lame of me... lol thanks for pointing out the obvious (though wasn't that obvious to me till you mentioned it).
Corrected
Hans Reyz wrote:
Actually, not OpenCFNET but OpenNETCF
Regards,
Hermit Dave
|
|
|
|
 |