How do I compare 2 LPOLESTR strings?

I'm using only Win32 lib in VS 2005.  Thanks.
Who is Participating?
jkrConnect With a Mentor Commented:
Since these are plain UNICODE strings, just use 'wcscmp()', e.g.

LPOLESTR test1 = L"test";
LPOLESTR test2 = L"test";

if (0 == wcscmp(test1,test2)) { // works like 'strcmp()'

  // identical
lapuccaAuthor Commented:
thank you.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.