vc++倒计时关机

C++

1个回答

写回答

吴琦玥

2026-01-05 16:09

+ 关注

wsprintf(str1,Time: %i,str); 应该是s吧 wsprintf(str1,Time: %s,str); 或者: itoa(g_timeEllapse,str,16); wsprintf(str1,Time: %i,str); 改为 wsprintf(str1,Time: %i,g_timeEllapse); 补充: int g_timeEllapse=60;//每次有TIMER消息,这个变量又重新赋值成60了, 可以未改为静态变量 static int g_timeEllapse=60;//只初始化一次 OK?

举报有用(0分享收藏

Copyright © 2025 IZhiDa.com All Rights Reserved.

知答 版权所有 粤ICP备2023042255号