Hi Lerner,
Thanks! So far I have done the same. My next step is to match the value till couple of columns in a row and if 2 rows are almost similar the value for the row which matches more closer should be displayed.
A glimpse of my code
for (int i=0; i<r; i++)
{
if( matrix_points[i][0] == ACE_Wide_To_Ascii(wEcuId.c_str()).char_rep())
{
printf("\nEntered");
printf(matrix_points[i][1]);
if(atoi(matrix_points[i][1]) == functionID)
{
printf("Entereted functionID\n");
if(matrix_points[i][2] == ACE_Wide_To_Ascii(testID.c_str()).char_rep()) // Comparing TestId in Excel file with the input TestId
{
printf("Entered testID\n");
if(atoi(matrix_points[i][3]) == testStat) // Comparing TestStatus in Excel file with the input TestStatus
{
printf("Entered testStatus\n");
if(atoi(matrix_points[i][4]) == ev.getNewState()) //Comparing ResponseType in Excel file with ErrorEvent's ResponseType
{
printf("Entered ResponseType\n");
if(matrix_points[i][5] == ev.getEvent()) //Comparing ResponseCode in Excel file with ErrorEvent's ResponseCode
{
printf("Entered ResponseCode\n");
qStrCT = matrix_points[i][6];
printf(qStrCT);
ACE_WString wStrCT ((const ACE_WCHAR_T *) qStrCT.unicode(), qStrCT.length());
ACE_TString tStrCT = ACE_Wide_To_Ascii(wStrCT.c_str()).char_rep();
ct = wStrCT;
//Retrieving Defaulttext
qStrDT = matrix_points[i][7];
printf(qStrDT);
ACE_WString wStrDT ((const ACE_WCHAR_T *) qStrDT.unicode(), qStrDT.length());
ACE_TString tStrDT = ACE_Wide_To_Ascii(wStrDT.c_str()).char_rep();
dt = wStrDT;
//LOGI1(ACE_TEXT("Veena:matrix_points[i][7] change to ACE_WSTRING.[%s]"),ACE_Wide_To_Ascii(wStr.c_str()).char_rep());
}
else
{
qStrCT = matrix_points[i][6];
printf(qStrCT);
ACE_WString wStrCT ((const ACE_WCHAR_T *) qStrCT.unicode(), qStrCT.length());
ACE_TString tStrCT = ACE_Wide_To_Ascii(wStrCT.c_str()).char_rep();
ct = wStrCT;
//Retrieving Defaulttext
qStrDT = matrix_points[i][7];
printf(qStrDT);
ACE_WString wStrDT ((const ACE_WCHAR_T *) qStrDT.unicode(), qStrDT.length());
ACE_TString tStrDT = ACE_Wide_To_Ascii(wStrDT.c_str()).char_rep();
dt = wStrDT;
//LOGI1(ACE_TEXT("Veena:matrix_points[i][7] change to ACE_WSTRING.[%s]"),ACE_Wide_To_Ascii(wStr.c_str()).char_rep());
}
}
}
}
}
}
}
Thanks & Regards