dyma82
asked on
Threads
I am trying to create a new thread of execution by calling :
_beginthread( simulateBMP, 0, NULL );
void simulateBMP() will be the function holding the code for this new thread. However, I got a compilation error when I try to compile my program using Visual C++ 6.0.
Even though, I have included the proper library by calling :
#include <process.h>
I still get the following strange error:
D:\MyProjects\MainBlock.cp p(296) : error C2065: '_beginthread' : undeclared identifier
_beginthread is a function defined in <process.h>. Why am I getting this error????
How can I go around it???
Thanks in advance
_beginthread( simulateBMP, 0, NULL );
void simulateBMP() will be the function holding the code for this new thread. However, I got a compilation error when I try to compile my program using Visual C++ 6.0.
Even though, I have included the proper library by calling :
#include <process.h>
I still get the following strange error:
D:\MyProjects\MainBlock.cp
_beginthread is a function defined in <process.h>. Why am I getting this error????
How can I go around it???
Thanks in advance
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
add "libcmt.lib" library to project
settings -> link -> object/library modules