how to compare a CString?

the following does not seem to work.

CString id = PictureEntries[i].attribute("id" ).value();

if (id.Compare("22 22") == 1){
cout << id << endl;
}...