When I compiled a project ported from Windows PC to
Windows CE, using embedded VC++, I get the following error
message.
_beginthread' : undeclared identifier
_endthread' : undeclared identifier
I include stdlib.h. I realized that Windos CE does not
have process.h file which is required on the PC to use
beginthread.
Any idea whats happening
thanks,
Hetal.
--
Steve Maillet (eMVP)
Entelechy Consulting
smaillet_AT_EntelechyConsulting_DOT_com
> As of V2.0x _beginthread is not needed in Windows CE> Since the C Runtime
> library is part of CoreDll.dll ALL applications always get the Multithreaded
> library that takes care of thread initialization automatically.
Yes, but _beginthread would also create the new thread: CreateThread is
what to use instead of _beginthread to answer the question completely.
HTH,
Andrew Tucker
CE MVP
"Hetal Patel" <Patel...@msn.com> wrote in message
news:038d01c2d61b$f37509f0$2f01...@phx.gbl...
Here is what I use for portable Windows code using _beginthreadex:
#if defined (_WIN32_WCE)
#define _beginthreadex(security, \
stack_size, \
start_proc, \
arg, \
flags, \
pid) \
CreateThread(security, \
stack_size, \
(LPTHREAD_START_ROUTINE) start_proc, \
arg, \
flags, \
pid)
#else /* !(_WIN32_WCE) */
#include <process.h>
#endif /* !(_WIN32_WCE) */
--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com