Click here to Skip to main content
16,017,151 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 8:01
Forser18-Sep-04 8:01 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 8:09
Forser18-Sep-04 8:09 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 23:04
professionalJoão Paulo Figueira18-Sep-04 23:04 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser19-Sep-04 3:14
Forser19-Sep-04 3:14 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira19-Sep-04 8:16
professionalJoão Paulo Figueira19-Sep-04 8:16 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser19-Sep-04 22:30
Forser19-Sep-04 22:30 
GeneralCTime Question Pin
Rassul Yunussov16-Sep-04 21:18
Rassul Yunussov16-Sep-04 21:18 
GeneralRe: CTime Question Pin
Jonas Larsson16-Sep-04 21:48
Jonas Larsson16-Sep-04 21:48 
Note: this is just from the top of my head. Im not a datetime conversion expert.

If you know the format of the date-string, just extract the year, month and day part from the string, convert it to ints using _itot and use m_time = CTime(year,month,day,0,0,0)

If you dont know the format, or if its regional-dependant:

DWORD dwFlags = LOCALE_NOUSEROVERRIDE|VAR_DATEVALUEONLY;
DATE d = 0.0;
USES_CONVERSION;
HRESULT hr = VarDateFromStr((LPOLESTR)T2COLE(str), 0, dwFlags, &d);
if (S_OK == hr)
{
COleDateTime t(d);
m_time = CTime(d.GetYear(), d.GetMonth(), d.GetDay(),0,0,0);
}

if you know the regional-format of the string you can skip LOCAL_NOUSEROVERRIDE, and pass in a LCID using that format to VarDateFromStr.

HTH

---

"Man will never be free until the last king is strangled with the entrails of the last priest". -- Denis Diderot

GeneralRe: CTime Question Pin
Rassul Yunussov17-Sep-04 0:17
Rassul Yunussov17-Sep-04 0:17 
GeneralRe: CTime Question Pin
Jonas Larsson17-Sep-04 3:10
Jonas Larsson17-Sep-04 3:10 
GeneralConversion file format Pin
MyProblem16-Sep-04 18:22
MyProblem16-Sep-04 18:22 
GeneraleVB Winsock Control Pin
Anonymous15-Sep-04 6:16
Anonymous15-Sep-04 6:16 
GeneralProblem with Pocket PC 2002 emulator with eVC++ 3.0 Pin
Ahmed Kamal Aly15-Sep-04 1:21
Ahmed Kamal Aly15-Sep-04 1:21 
GeneralNokia 9210i error Pin
Mekong River14-Sep-04 22:06
Mekong River14-Sep-04 22:06 
GeneralRe: Nokia 9210i error Pin
Mekong River15-Sep-04 14:55
Mekong River15-Sep-04 14:55 
GeneralCListCtrl Question Pin
Rassul Yunussov12-Sep-04 21:52
Rassul Yunussov12-Sep-04 21:52 
GeneralRe: CListCtrl Question Pin
Jonas Larsson14-Sep-04 4:09
Jonas Larsson14-Sep-04 4:09 
GeneralRe: CListCtrl Question Pin
Rassul Yunussov16-Sep-04 1:04
Rassul Yunussov16-Sep-04 1:04 
GeneralRe: CListCtrl Question Pin
Jonas Larsson16-Sep-04 2:22
Jonas Larsson16-Sep-04 2:22 
Generallaunching pocket word / excel Pin
khchan12-Sep-04 16:25
khchan12-Sep-04 16:25 
GeneralMultiple document templates Pin
Jens Christiansen11-Sep-04 3:11
Jens Christiansen11-Sep-04 3:11 
GeneralEmulator Problem and other Stuffs Pin
monn10-Sep-04 14:28
monn10-Sep-04 14:28 
GeneralRe: Emulator Problem and other Stuffs Pin
sreejith ss nair11-Sep-04 23:58
sreejith ss nair11-Sep-04 23:58 
GeneralRe: Emulator Problem and other Stuffs Pin
monn12-Sep-04 4:55
monn12-Sep-04 4:55 
GeneralMobile apps and web integration Pin
Jon Cooperonie9-Sep-04 6:43
Jon Cooperonie9-Sep-04 6:43 

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.