Exp=f
@p1=
@c1=
@p2=
@c2=
@va=temp_a
@vb=temp_b
@vc=temp_c
@vd=temp_d
@end
                                        
//Ystrcat
//Ŀģַ
//s1Ҫӵַ֮һ
//s2Ҫӵַ֮һ
//ؽĿַ
//LastError=0ȷLastErrorΪμֲ
WCHAR * @ytclass::Ystrcat(WCHAR *ins1,WCHAR *ins2)
{
	char *s1=NULL;char *s2=NULL;
	int numlen;
	numlen=WideCharToMultiByte(0,0,ins1,-1,NULL,0,NULL,FALSE);
	if(numlen>0)
	{
		s1=new char[numlen];
		WideCharToMultiByte(0,0,ins1,-1,s1,numlen,NULL,FALSE);
	}

	numlen=WideCharToMultiByte(0,0,ins2,-1,NULL,0,NULL,FALSE);
	if(numlen>0)
	{
		s2=new char[numlen];
		WideCharToMultiByte(0,0,ins2,-1,s2,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 ins1;
	char *temp_s1=s1;char *temp_s2=s2;
	//ֲ
	BYTE temp_a,temp_b,temp_c,temp_d;
/////////////////////////////////////ַ1////////////////////////////////////
	//ȡַĳ
	int s1_len=lstrlenA(s1);
	//ַĳȶʱиֵԱԺмܴ
	if(s1_len<=0){LastError=-3;return NULL;}//ô
	if(s1_len>0){temp_a=*s1;}//ȡַĵһֵtemp_a;
	if(s1_len>1){s1++;temp_b=*s1;}//ȡַĵڶֵtemp_b;
	if(s1_len>2){s1++;temp_c=*s1;}//ȡַĵֵtemp_c;
	if(s1_len>3){s1++;temp_d=*s1;}//ȡַĵĸֵ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; return NULL;//ô
	}
	//ڼĽصtemp_a,temp_b,temp_c,temp_d
	//ٽͻصַ
	s1=temp_s1;
	if(s1_len>0){*s1=temp_a;}//temp_aֵŵַ;
	if(s1_len>1){s1++;*s1=temp_b;}//temp_bֵŵַ
	if(s1_len>2){s1++;*s1=temp_c;}//temp_cֵŵַ
	if(s1_len>3){s1++;*s1=temp_d;}//temp_dֵŵַ
/////////////////////////////////////ַ2////////////////////////////////////
	//ȡַĳ
	int s2_len=lstrlenA(s2);
	//ַĳȶʱиֵԱԺмܴ
	if(s2_len<=0){LastError=-3;return NULL;}//ô
	if(s2_len>0){temp_a=*s2;}//ȡַĵһֵtemp_a;
	if(s2_len>1){s2++;temp_b=*s2;}//ȡַĵڶֵtemp_b;
	if(s2_len>2){s2++;temp_c=*s2;}//ȡַĵֵtemp_c;
	if(s2_len>3){s2++;temp_d=*s2;}//ȡַĵĸֵtemp_d;
	//ⲽ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
	//ٽͻصַ
	s2=temp_s2;
	if(s2_len>0){*s2=temp_a;}//temp_aֵŵַ;
	if(s2_len>1){s2++;*s2=temp_b;}//temp_bֵŵַ
	if(s2_len>2){s2++;*s2=temp_c;}//temp_cֵŵַ
	if(s2_len>3){s2++;*s2=temp_d;}//temp_dֵŵַ
	s2=temp_s2;
	s1=temp_s1;
	
	WCHAR *ret_s;
	numlen=MultiByteToWideChar (0, 0, s1, -1, NULL, 0);
	MultiByteToWideChar (0, 0, s1, -1,ins1, numlen);
	delete [] s1;

	numlen=MultiByteToWideChar (0, 0, s2, -1, NULL, 0);
	MultiByteToWideChar (0, 0, s2, -1, ins2, numlen);
	delete [] s2;
	
	//ַ
	ret_s=wcscat(ins1,ins2);
	
	return	ret_s;
}