Valhalla Legends Forums Archive | C/C++ Programming | GetSystemTime Question

AuthorMessageTime
Yegg
Where BnetDocs has the following line:
[code](FILETIME)              System Time[/code]
Would it be correct to send the following data to Battle.net?
[code]SYSTEMTIME st; GetSystemTime(&st);
std::cout << st.wDay << st.wDayOfWeek << st.wHour << st.wMilliseconds << st.wMinute << st.wMonth << st.wSecond << st.wYear << "\n";[/code]

July 21, 2005, 2:22 AM
Arta
No, you should do:

[code]
FILETIME Time;
GetSystemTimeAsFileTime(&Time);

Message.add(&Time); // Or whatever
[/code]
July 21, 2005, 2:39 AM
Yegg
Ok thanks Arta, it works great.
July 21, 2005, 2:49 AM

Search