problem with AfxBeginThread

hi

i am geting error while using AfxBeginThread

here is my sample code

UINT CTestDoc::ThreadFunc(LPVOID pParam)
{
CSpinner* lpSpin = (CSpinner*)pParam;
// Get a pointer to the continuation flag
return 0;

}

void CTestDoc::SuspendSpinner(int nIndex, BOOL bSuspend)
{
CWinThread* m_pSpinThread[nIndex] = AfxBeginThread(ThreadFunc,
(LPVOID) &m_cSpin[iSpnr]);
}

i don'tknow how Attachment complet code in this forum if u want complet code please send me u mail id

my error is

AfxBeginThread' : none of the 2 overloads can convert parameter 1 from type 'unsigned int (void *)'

[922 byte] By [chakravarthi] at [2007-12-22]
# 1
You need to declare CTestDoc::ThreadFunc with the static keyword.
nobugz at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 2
Thank you I am able to run the program
chakravarthi at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...
# 3
Tu understand the problem, take a look at this FAQ, about pointer 'this', http://www.codeguru.com/forum/showthread.php?t=343480.
MariusBancila at 2007-8-30 > top of Msdn Tech,Visual C++,Visual C++ Language...