急死了,怎么才能够设置计算机时间,快!!

BlueCapricorn 2006-10-31 11:14:42
如题!
...全文
146 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
BlueDeepOcean 2006-10-31
  • 打赏
  • 举报
回复
void __fastcall TVCPS_Main::btn_SetSystemTimeClick(TObject *Sender)
{
SYSTEMTIME tm;

tm.wYear = ed_Y->Text.ToInt();
tm.wMonth = ed_Mh->Text.ToInt();
tm.wDayOfWeek = ed_W->Text.ToInt();
tm.wDay = ed_D->Text.ToInt();

tm.wHour = ed_H->Text.ToInt();
tm.wMinute = ed_Mn->Text.ToInt();
tm.wSecond = ed_S->Text.ToInt();
tm.wMilliseconds = ed_Ms->Text.ToInt();

::SetSystemTime(&tm);
}

1,221

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder Windows SDK/API
社区管理员
  • Windows SDK/API社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧