Hi,
I want to create a function witch receives a string as a argument and the compares is with another string to see if there are equal (like searching a name in a database)
so i have:
int looking(CString name)
{
if (name==outro.name1)
return 1;
else
return 0;
}
Note: outro is just a object from a CDialog that identifies a edit box with is identified by a variable CString name1.
This edit box receives a input from the user and compare with a string received at the function looking.
thanks a lot
I want to create a function witch receives a string as a argument and the compares is with another string to see if there are equal (like searching a name in a database)
so i have:
int looking(CString name)
{
if (name==outro.name1)
return 1;
else
return 0;
}
Note: outro is just a object from a CDialog that identifies a edit box with is identified by a variable CString name1.
This edit box receives a input from the user and compare with a string received at the function looking.
thanks a lot