// JP opened flex table

Click to See Complete Forum and Search --> : multithreading


wopgne
April 2nd, 2004, 03:05 AM
hi,

i am facing a problem while running a program related to multithreading.

the program i followed s from this website

http://www.adminmod.org/karel/2/ch18/ch18.htm

// Start the thread, passing a pointer to the spinner
29: m_pSpinThread[nIndex] = AfxBeginThread(ThreadFunc,
30: (LPVOID)&m_cSpin[iSpnr]);


the error stated: "none of the overloads can convert 1 parameters from type 'unsigned int(_thiscall (MultiDoc::*)(void *)'

coder error = c2665

can anyone help me to solve this problem? tks!

Alin
April 2nd, 2004, 03:21 AM
Originally posted by wopgne
hi,

i am facing a problem while running a program related to multithreading.

the program i followed s from this website

http://www.adminmod.org/karel/2/ch18/ch18.htm

// Start the thread, passing a pointer to the spinner
29: m_pSpinThread[nIndex] = AfxBeginThread(ThreadFunc,
30: (LPVOID)&m_cSpin[iSpnr]);


the error stated: "none of the overloads can convert 1 parameters from type 'unsigned int(_thiscall (MultiDoc::*)(void *)'

coder error = c2665

can anyone help me to solve this problem? tks!


see that your ThreadFunc is declared like:

static UINT ThreadFunc(LPVOID);

Andreas Masur
April 2nd, 2004, 06:40 AM
[Moved thread]

Andreas Masur
April 2nd, 2004, 06:41 AM
Take a look at the following FAQ (http://www.codeguru.com/forum/showthread.php?s=&threadid=231246)...

//JP added flex table