Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Threads

Status
Not open for further replies.

chameleon

Programmer
Sep 27, 2000
5
0
0
ZA
Hi

I would like to know why I can't call this with _beginthread

void CTummyDoc::startthread(void *Port)
it tells me cannot convert parameter 1 from void (void*) to void*

I use _beginthread(startthread,0,NULL)

Thanks
Chameleon [sig][/sig]
 
well for starters you need to make the function static the old 'C' Style begintread cannot begin inside of a virtual function, you have to have one and only one instance of a function, and it has to be static. [sig]<p>Karl<br><a href=mailto:kb244@kb244.com>kb244@kb244.com</a><br><a href= </a><br>Experienced in : C++(both VC++ and Borland),VB1(dos) thru VB6, Delphi 3 pro, HTML, Visual InterDev 6(ASP(WebProgramming/Vbscript)<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top