(LPCWSTR ) string1.GetUnicode(),  string1.Length(),
(LPCWSTR ) string1.get(),  string1.Length(),
static void DebugPrintCompResult(nsString string1, nsString string2, int result){#ifdef WIN32  char s[512];  int len = WideCharToMultiByte(GetACP(), 0,                                (LPCWSTR ) string1.GetUnicode(),  string1.Length(),                                s, 512, NULL,  NULL);  s[len] = '\0';  printf("%s ", s);    switch ((int)result) {    case 0:      printf("==");      break;    case 1:      printf(">");      break;    case -1:      printf("<");      break;    }  len = WideCharToMultiByte(GetACP(), 0,                            (LPCWSTR ) string2.GetUnicode(),  string2.Length(),                            s, 512, NULL,  NULL);  s[len] = '\0';  printf(" %s\n", s);#else    // Warning: casting to char*    char *cstr = string1.ToNewCString();        if (cstr) {      cout << cstr << ' ';      delete [] cstr;    }    switch ((int)result) {    case 0:      cout << "==";      break;    case 1:      cout << '>';      break;    case -1:      cout << '<';      break;    }    cstr = string2.ToNewCString();    if (cstr) {      cout << ' ' << cstr << '\n';      delete [] cstr;    }#endif}