AltPluzF4
August 2nd, 2005, 07:09 PM
I am trying to get an element on a page with a toolbar, and I have it do
pID->get_name(&bstr);
I have tried several ways to compare the value of bstr to "passwd" in a if () statement....
What would be the correct way to compare the value of a bstr to text such as char pass[] = "test";
I had the if-else statement send a messagebox with the value of bstr, and it goes through all the wrong items, and then sends the "passwd", but it still accepts it as wrong... even though its the exact text im looking for...
So, I know the program is finding the item on the page, but it is not comparing it right...
Can anyone help me with this little problem? I am completly new to ATL stuff :-/
pID->get_name(&bstr);
I have tried several ways to compare the value of bstr to "passwd" in a if () statement....
What would be the correct way to compare the value of a bstr to text such as char pass[] = "test";
I had the if-else statement send a messagebox with the value of bstr, and it goes through all the wrong items, and then sends the "passwd", but it still accepts it as wrong... even though its the exact text im looking for...
So, I know the program is finding the item on the page, but it is not comparing it right...
Can anyone help me with this little problem? I am completly new to ATL stuff :-/