#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
#pragma code("UseAdmin.DLL")
#include "pwrt_api.h"
#pragma code()
if (PWRTSilentLogin(GetTagChar("user"), GetTagChar("password"))
SetVisible("Start.PDL",lpszObjectName,1); //Return-Type: BOOL
else SetVisible("Welcome.PDL","PictureWindow2",1); //Return-Type: BOOL
初学Wincc,自己做了个用户登陆的代码,如上,但是编译后提示如下两条错误代码1。line8 error(0040):‘)’ expected before 'SetVisible'
2. line9 error(0040): expected before 'else'
不知道为什么提示是错的?请大侠们帮帮忙!