I
Ilia Poliakov
Can I run a thread with _beginthread() and pass as the first parameter the
pointer on a member function of a class?
#include <process.h>
class A
{
void _cdecl f(void*) {};
};
void main()
{
_beginthread(&A::f, 0, NULL);
}
I get the compilation error:
error C2664: '_beginthread' : Konvertierung des Parameters 1 von 'void
(__cdecl A::* )(void *)' in 'void (__cdecl *)(void *)' nicht moglich
PS. I work in MSVC7.0 (german version , console application
pointer on a member function of a class?
#include <process.h>
class A
{
void _cdecl f(void*) {};
};
void main()
{
_beginthread(&A::f, 0, NULL);
}
I get the compilation error:
error C2664: '_beginthread' : Konvertierung des Parameters 1 von 'void
(__cdecl A::* )(void *)' in 'void (__cdecl *)(void *)' nicht moglich
PS. I work in MSVC7.0 (german version , console application