How to compare string..
-
Come on Satish ! You are still not reading answers well and replying to our queries well. 1. What does not working mean ? You need to be very clear. 2. Have you taken in to consideration when using
||
operator second operand will be looked only when first isfalse
?Shah Satish wrote:
x1 is cstring and (mytext->contents)is a pointer..
It should not matter here.
Prasad Notifier using ATL | Operator new[],delete[][^]
Hi Prasad !!! I am sorry for delay..The ocde is exactly right n its working now..The problem was in my software...But now its working properly.. Thanks man !!! Shah
-
if this does not work, split the CompareNoCase and the if in different statements and debug each statement separatly.
bool b1 = (x1.CompareNoCase(s1)== 0);
bool b2 = (x1.CompareNoCase(s2)== 0);
if ( b1 || b2 )
{
}
Maximilien Lincourt Your Head A Splode - Strong Bad
Hi Maximilien !!! I am sorry for delay..The Code is exactly right n its working now..The problem was in my software...But now its working properly.. Thanks man !!! Shah