请教:如何读出WINCC6.2的系统时间?
网上的脚本通不过编译
#pragma code("kernel32.dll")
VOID GetLocalTimes(SYSTEMTIME*lpst)
#pragma code();
SYSTEMTIME time;
【 GetLocalTime(&time);
SetTagWord("Varname",time.wYear);
SetTagWord("Varname",time.wMonth);
SetTagWord("Varname",time.wDayOfWeek);
SetTagWord("Varname",time.wDay);
SetTagWord("Varname",time.wHour);
SetTagWord("Varname",time.wMinute);
SetTagWord("Varname",time.wSecond);
SetTagWord("Varname",time.wMilliseconds);
运行到"【 GetLocalTime(&time); ‘出错?