发表于:2005/10/5 16:45:00
#0楼
1、变量说明
“用户名”-----user1
“口令”--------pass
“用户名不对,请重新输入”--------user3
“口令不对,请重新输入”--------user2
“画面”----------------display
2、程序说明
“确认”按钮的程序如下:
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
char aa[6],bb[6];
strcpy(aa,GetTagChar("user1"));
strcpy(bb,GetTagChar("pass"));
if(strcmp(aa,"user1")==0)
SetTagByte("user3",0);
else
SetTagByte("user3",1);
if(strcmp(bb,"user1p")==0)
SetTagByte("user2",0);
else
SetTagByte("user2",1);
if(strcmp(aa,"user1")==0)
{
if(strcmp(bb,"user1p")==0)
{
SetTagByte("display",0);
DeactivateRTProject ();
SetTagByte("user2",0); //返回类型:BOOL
}
else
SetTagByte("user2",1);
}
else
SetTagByte("user3",1);
}
“取消”按钮的程序如下:
#include "apdefap.h"
void OnLButtonDown(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName, UINT nFlags, int x, int y)
{
SetTagByte("display",0); //返回类型:BOOL
SetTagByte("user2",0); //返回类型:BOOL
SetTagByte("user3",0); //返回类型:BOOL
}
问题:初始密码是怎么设置的?