hi there! im trying to do a xor beetwin two cha but i coudl no there is my code:
String^ val2;
String^ val3;
String^ val1;
String^ val;
char *chval1;
char *chval2;
char *chval3;
char *chval;
char *chv;
val1=GZMK1->Text;//GZMK1 is textbox
val2=GZMK2->Text;//GZMK2 is textbox
val3=GZMK3->Text;//GZMK3 is textbox
chval1 = static_cast<char *>(System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(val1).ToPointer());
//convert String^ to a char
chval2 = static_cast<char *>(System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(val2).ToPointer());
chval3 = static_cast<char *>(System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi(val3).ToPointer());
for( int i=0;i<sizeof(chval1);i++)
{
chv[i]=chval1[i]^chval2[i];
}
String ^ str =gcnew String(chv);
GZMK->Text=str;//GZMK is a textbox where i m gonna put my result
leas any body could help me i m gonnaa be a grathful