I want to check if a String contains a specific Text. Something like this
CString a;
CString b;
if (a.Find (b))
{
String a contains String b
}
Can anyone help me? Im working with mfc
If you change your if statement to
if (a.Find (b) != -1)
then you got what you want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With