Impotant (Error)

C:\Program Files\Microsoft Visual Studio\MyProjects\SysInfoService\SysInfoService.cpp(609) : error C2065: '_beginthread' : undeclared identifier
Error executing cl.exe.

I write a windows service program (SysInfoService), but this error accured.

I don't understand this error!!!!
How can i solve this problem ?
Should i install any tool about services or processes?
Please help me...
Thanx everybody...
[454 byte] By [blackdevil] at [2007-11-18 20:33:39]
# 1 Re: Impotant (Error)
Hi,

change the project setting to multi threaded application. then the build works fine.

Regards,
pramod.
pramod_astro at 2007-11-11 1:12:16 >
# 2 Re: Impotant (Error)
Hi,
I find project settings but don't find multi thread option.
Where is it ?
Can u explain?
Thanks a lot...
blackdevil at 2007-11-11 1:13:27 >
# 3 Re: Impotant (Error)
Just #include <process.h>
Anyhow to further understanding of C2065 or whatever (compiler) error just search for it in MSDN.
The first tip of Compiler Error C2065 is "Make sure any include file containing the required declaration is not omitted."
Then take a look again in _beginthread documentation and you'll see the required header.
ovidiucucu at 2007-11-11 1:14:19 >
# 4 Re: Impotant (Error)
For the second question see Project Settings\C/C++\Cathegory:Code Generation\Use run-time library.
And for a quick explain, click on question mark button then in
Use run-time library combo.
ovidiucucu at 2007-11-11 1:15:25 >