|
Posted by gozer61 on October 23, 2006, 11:23 am
Please log in for more thread options
Does anyone have any experience trying to change the date/time
programatically on an ETEN m600+ smartphone? I wrote a simple dialog-based
app in C++ for WM5. The only thing I added over the wizard-generated app was
to insert a call to SetLocalTime() into the OnInitDialog() handler. When
executed, the date and time do change (although years appear to be restricted
to within 100 years of the current one as they're mapped back into the
current century [i.e. 1961 becomes 2061]). However, the device becomes
unstable in that my application may crash, may not display the dialog after
setting the date/time, or may even lock up. The situation becomes worse the
more runs through the debugger I make. Resolution is currently to pop the
battery and reset the device completely. YIKES!
More information: via the output window, I notice a couple of calls to
functions named somethign like OEMSetDateTime() which, I assume, is part of
the O/S implementation.
Setting the date/time through the system applet seems to cause no ill effects.
I'm assuming that while you can change date/time, there's some other piece
of software running either in the O/S or as an application that does not like
my dynamic date/time change and is not playing nicely with the other apps.
I've read that the m600 sends a slew of proprietary user-defined windows
messages to all apps. Does anyone know if that's true?
Any insight y'all can provide would be greatly appreciated.
|