真奇怪,SetTimer()成功返回值不正是应为非0吗?
ASSERT(uTimeSetted!=0);才对嘛。
如要与窗口无关,可写成
do
utimesetted=::SetTimer(NULL,1,timer,NULL);
while (uTimeSetted==0);//if non-zero, success
//1. you should import the exe file into VC resource using
// VC menu->Insert->Resource...->Import, suppose you set the
// resource type as EXERSC, and ID as IDR_EXERSC