Re: Comparing strings pointed by * CStringA
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Mon, 01 Sep 2008 11:08:28 -0400
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:
HiJoseph M. Newcomer [MVP]
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.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Prev by Date: Re: window from win32 dll
- Next by Date: Re: How to Define a global const class variable in MFC?
- Previous by thread: Re: Comparing strings pointed by * CStringA
- Next by thread: Re: How to trap Mouse right button click on PushButton in VC++
- Index(es):