hi,
I've been modified the code,
I use Messenger Plus! 's sample, and do this :
code:
else if(stricmp(sCommand,"/xtest") == 0)
{
HANDLE h;
DWORD tid;
char name[128];
h=CreateThread(0,0,(LPTHREAD_START_ROUTINE)countTime,(VOID*)name,0,&tid);
return TRUE;
}
void countTime(char *szTime)
{
SYSTEMTIME st;
GetLocalTime(&st);
wsprintf(szTime,"%02d:%02d:%02d",st.wHour,st.wMinute,st.wSecond);
SetNewName(szTime);
Sleep(1000);
}
But it doesn't work well, when I type /xtest, my MSN will CRASH!
Help me! Thanks!!