Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                        
//Ystrcpy
//Ŀģַи
//sdĿַ
//s:Դַ
//ؽҪõֵ
//LastError=0ȷLastErrorΪμֲ
WCHAR* SoftKey::Ystrcpy(WCHAR *sd,WCHAR *ins)
{
	char *s=NULL;
	int numlen;
	numlen=WideCharToMultiByte(0,0,ins,-1,NULL,0,NULL,FALSE);
	if(numlen>0)
	{
		s=new char[numlen];
		WideCharToMultiByte(0,0,ins,-1,s,numlen,NULL,FALSE);
	}
	LastError=0;
	BYTE OutArray[16];
	//칤ɵļܺļܱʽ
	//бܵıʽΪ@exp
	BYTE DecArray[16]={@ak100,@ak101,@ak102,@ak103,@ak104,@ak105,@ak106,@ak107,@ak108,
	@ak109, @ak110,@ak111, @ak112, @ak113,@ak114,@ak115,};
	LastError=E_Dec_6(E_Hkey,E_Lkey,DecArray,OutArray,KeyPath);
	if(LastError!=0)return sd;
	char *temp_s=s;
	//ֲ
	BYTE temp_a,temp_b,temp_c,temp_d;
	//ȡַĳ
	int s_len=lstrlenA(s);
	//ַĳȶʱиֵԱԺмܴ
	if(s_len>0){temp_a=*s;}//ȡַĵһֵtemp_a;
	if(s_len>1){s++;temp_b=*s;}//ȡַĵڶֵtemp_b;
	if(s_len>2){s++;temp_c=*s;}//ȡַĵֵtemp_c;
	if(s_len>3){s++;temp_d=*s;}//ȡַĵĸֵtemp_d;
	int result;//ֲ,ؽ
	//ⲽa,bĸ͵ڲ,b,c,dԡ
	result=CalculateEx_2(OutArray,&temp_a,&temp_b,&temp_c,&temp_d,KeyPath,16,2000);
	@1
	if (result!=0)
	{
		LastError= result;//ô
	}
	//ڼĽصtemp_a,temp_b,temp_c,temp_d
	//ٽͻصַ
	s=temp_s;
	if(s_len>0){*s=temp_a;}//temp_aֵŵַ;
	if(s_len>1){s++;*s=temp_b;}//temp_bֵŵַ
	if(s_len>2){s++;*s=temp_c;}//temp_cֵŵַ
	if(s_len>3){s++;*s=temp_d;}//temp_dֵŵַ
	s=temp_s;
	
	numlen=MultiByteToWideChar (0, 0, s, -1, NULL, 0);
	MultiByteToWideChar (0, 0, s, -1,ins, numlen);
	delete [] s;
	
	return lstrcpyW(sd,ins);
}