请帮忙解决compile过程中的报错,谢谢!
我的源代码(在Shieldpc.cpp中)为:
srand( (unsigned)time( NULL ) );
x=rand();
if(Lock32_Function(x)==shieldPC(x,key1,key2,key3,key4))
{
MessageBox(hwnd,"The lock is ok",NULL,MB_OK);
}else
{
MessageBox(hwnd,"The lock is err",NULL,MB_OK);
}
************************************************************************
在compile Shieldpc.cpp时报错如下:
--------------------Configuration: aspcomsamp - Win32 Debug--------------------
Compiling...
Shieldpc.cpp
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\PROJECTS\ASPCOMSAMP\aspcomsamp\Shieldpc.cpp(31) : error C2065: 'time' : undeclared identifier
C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\VC98\PROJECTS\ASPCOMSAMP\aspcomsamp\Shieldpc.cpp(35) : error C2065: 'hwnd' : undeclared identifier
Error executing cl.exe.
aspcomsamp.dll - 2 error(s), 0 warning(s)