Click here to Skip to main content
15,890,185 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: SQL CE Performance so slow.... Pin
mac24nzmac24nz19-Mar-08 10:26
mac24nzmac24nz19-Mar-08 10:26 
Questionmobile database connectivity Pin
achari.ravi12-Mar-08 21:32
achari.ravi12-Mar-08 21:32 
GeneralRe: mobile database connectivity Pin
mac24nzmac24nz13-Mar-08 0:06
mac24nzmac24nz13-Mar-08 0:06 
Questionlooking for sample code on using pocket outlook, excel and word object Pin
Kayu12-Mar-08 17:58
Kayu12-Mar-08 17:58 
GeneralRe: looking for sample code on using pocket outlook, excel and word object Pin
Arjun Marwaha16-Mar-08 20:20
Arjun Marwaha16-Mar-08 20:20 
NewsFree Introductory Windows Mobile 6 training for developers Pin
brucedkyle12-Mar-08 7:03
brucedkyle12-Mar-08 7:03 
Questionhow to change date & time in C# for PPC Pin
E_Gold12-Mar-08 3:32
E_Gold12-Mar-08 3:32 
AnswerRe: how to change date & time in C# for PPC Pin
mac24nzmac24nz13-Mar-08 0:38
mac24nzmac24nz13-Mar-08 0:38 
I've only been able to manage that by using calls to the windows APIs which only work on some PDAs (on my development Dell X51V it works, on some Symbols it doesn't. I'm not sure why - no exception or anything, just the time doesn't change)

Hope that helps, but maybe someone knows a C# way of doing that.

Martin

[DllImport("coredll.dll")]
public extern static void GetSystemTime(ref SYSTEMTIME lpSystemTime);

[DllImport("coredll.dll")]
public extern static uint SetSystemTime(ref SYSTEMTIME lpSystemTime);

public struct SYSTEMTIME
{
public ushort wYear;
public ushort wMonth;
public ushort wDayOfWeek;
public ushort wDay;
public ushort wHour;
public ushort wMinute;
public ushort wSecond;
public ushort wMilliseconds;
}


public static void setSystemDate(DateTime newTime)
{
// Set the clock to this time
SYSTEMTIME st = new SYSTEMTIME();

st.wMilliseconds = (ushort)newTime.ToUniversalTime().Millisecond;
st.wSecond = (ushort)newTime.ToUniversalTime().Second;
st.wMinute = (ushort)newTime.ToUniversalTime().Minute;
st.wHour = (ushort)newTime.ToUniversalTime().Hour;

st.wDay = (ushort)newTime.ToUniversalTime().Day;
st.wMonth = (ushort)newTime.ToUniversalTime().Month;
st.wYear = (ushort)newTime.ToUniversalTime().Year;
//GetSystemTime(ref st);
//st.wHour = (ushort)(st.wHour + 1 % 24);
SetSystemTime(ref st);
}
Questiondatabse connectivity Pin
achari.ravi12-Mar-08 1:11
achari.ravi12-Mar-08 1:11 
GeneralRe: databse connectivity Pin
Paul Conrad12-Mar-08 6:35
professionalPaul Conrad12-Mar-08 6:35 
GeneralRe: databse connectivity Pin
Ravenet13-Mar-08 20:14
Ravenet13-Mar-08 20:14 
QuestionUsing key combinations/short cut keys in Windows Mobile/Smartphone [modified] Pin
Parasmani Swamy10-Mar-08 0:56
Parasmani Swamy10-Mar-08 0:56 
GeneralTreo 600 application Pin
Are Jay7-Mar-08 17:09
Are Jay7-Mar-08 17:09 
GeneralSkins for PDA applications Pin
steve_rm7-Mar-08 6:36
steve_rm7-Mar-08 6:36 
GeneralMobil Development data problems Pin
Cory Kimble6-Mar-08 4:13
Cory Kimble6-Mar-08 4:13 
QuestionCapturing/gathering own mobile number - Smartphone Pin
Parasmani Swamy3-Mar-08 23:15
Parasmani Swamy3-Mar-08 23:15 
AnswerRe: Capturing/gathering own mobile number - Smartphone Pin
Himanshu Joshi6-Mar-08 2:02
Himanshu Joshi6-Mar-08 2:02 
GeneralRe: Capturing/gathering own mobile number - Smartphone Pin
Parasmani Swamy13-Mar-08 18:46
Parasmani Swamy13-Mar-08 18:46 
GeneralRe: Capturing/gathering own mobile number - Smartphone Pin
deep_charate15-Apr-08 21:23
deep_charate15-Apr-08 21:23 
QuestionGPS/SPRS - Smartphone [modified] Pin
Parasmani Swamy3-Mar-08 23:12
Parasmani Swamy3-Mar-08 23:12 
GeneralRe: GPS/SPRS - Smartphone Pin
Himanshu Joshi6-Mar-08 2:25
Himanshu Joshi6-Mar-08 2:25 
GeneralRe: GPS/SPRS - Smartphone Pin
Parasmani Swamy13-Mar-08 18:44
Parasmani Swamy13-Mar-08 18:44 
GeneralDetect and connect to wireless Pin
haolan2-Mar-08 12:30
haolan2-Mar-08 12:30 
Generalwin32 creating and setting start up form Pin
steve_rm28-Feb-08 22:10
steve_rm28-Feb-08 22:10 
GeneralMobile Development Pin
Cory Kimble27-Feb-08 3:38
Cory Kimble27-Feb-08 3:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.