Re: Comparing strings pointed by * CStringA



if(*ptr1 == *ptr2)

If you have a comparison operator defined on CStringA, then you have to have CStringA
objects. Derferencing the pointers does that.
joe
On Mon, 1 Sep 2008 01:14:43 -0700 (PDT), wojjed@xxxxxxxxx wrote:

Hi

Im using sql in my project, therefore im using CDBVariant class to
retirve values from my table. If column in sql vas "varchar" , the
object of CDBVariant is *CStringA type. I need to compare two
pointers of CStringA . For example prt1 points on "ID1" and ptr2
points on "ID2". If there is a CStringA type, there is no problem, but
when i got pointers to CStringA types, i completly dont know how to
compare strings pointed by them.

Thx in advance for help.
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.