i have 1 class Multithread, but seems that i have some errors:(
#include <process.h>
#include <string>
using namespace std;
class MultiThread
{
private:
void * b;
public:
void ParameterList(void *c)
{
b=c;
}
void Thread(unsigned (__stdcall*) (void *) )
{
_beginthreadex(NULL, 0, (__stdcall*) (void *) , b, 0, NULL);
}
};
the parameterlist is a struture for the thread arguments.
error message:
"error: expected primary-expression before 'attribute'"
"error: expected ')' before 'attribute'"
can anyone advice me?