定时器的奇怪现象

whiteclouds 2007-05-31 11:33:31
在Pocket2003平台下,用VS2005做的程序,里面使用了定时器0。可是调用SetTimer(0,1000,NULL)以后,定时器0似乎不工作。莫名,谁能告诉我原因啊?谢谢!
...全文
98 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
whiteclouds 2007-05-31
  • 打赏
  • 举报
回复
我也刚刚发现,用1#Timer就没问题了。我的msdn上没有这句话。费了我半天时间。
YourKing 2007-05-31
  • 打赏
  • 举报
回复
This function creates a timer with the specified time-out value.

UINT SetTimer(
HWND hWnd,
UINT nIDEvent,
UINT uElapse,
TIMERPROC lpTimerFunc );
Parameters
hWnd
Handle to the window to be associated with the timer. This window must be owned by the calling thread. If this parameter is NULL, no window is associated with the timer and the nIDEvent parameter is ignored.
nIDEvent
Specifies a nonzero timer identifier. If the hWnd parameter is NULL, this parameter is ignored.

MSDN有说明Specifies a nonzero timer identifier,你就不要钻牛角了

7,655

社区成员

发帖
与我相关
我的任务
社区描述
Windows Phone是微软发布的一款手机操作系统,它将微软旗下的Xbox LIVE游戏、Zune音乐与独特的视频体验整合至手机中。
社区管理员
  • Windows客户端开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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