ТМ
Татьяна Мариан
Ошибки в C++/CLI
Пишу в VS 2005.Выдает такие ошибки при компиляции
error C3861: 'lock': identifier not found
error C2065: 'null' : undeclared identifier
error C2143: syntax error : missing ';' before '{'
void Move() //движение
{
while (life)
{
counter++;
if (great) OnCirclebigroad();
if (!great) OnCirclesmallroad();
if (ev != null)
ev();
Thread::Sleep(100);
lock (this)
{
if (moving)
Monitor::Wait(this);
}
}
}