G
Guest
Hi
i am trying to create a Thread using _beginthread that will access data in a class but i keep getting a C2664: '_beginthread' : cannot convert parameter 1 from 'void (DBLR<T>&)' to 'void (__cdecl *)(void *)' with [ T=Packet *].
Anyone who can help, please do so, its driving me crazy. I know its most probably a type casting problem but i don't know what to do
Thank
/////////////////////////////////////////////////////////////code sampl
void qtest1( DBLR<Packet*>&QQQ
{
//do something using whatever instance of DBLR was passe
int main()
{
DBLR<Packet*> DBL; //DBLR template ini
_beginthread( qtest1,0, &DBL )
_endthread();
i am trying to create a Thread using _beginthread that will access data in a class but i keep getting a C2664: '_beginthread' : cannot convert parameter 1 from 'void (DBLR<T>&)' to 'void (__cdecl *)(void *)' with [ T=Packet *].
Anyone who can help, please do so, its driving me crazy. I know its most probably a type casting problem but i don't know what to do
Thank
/////////////////////////////////////////////////////////////code sampl
void qtest1( DBLR<Packet*>&QQQ
{
//do something using whatever instance of DBLR was passe
int main()
{
DBLR<Packet*> DBL; //DBLR template ini
_beginthread( qtest1,0, &DBL )
_endthread();