I am trying to compare QString against char*, but I fail to do that:
I tryied also to convert QString to char* then make the comparison but I fail too. Both QString test and md.digestString(md.digestString(md.digestString(cr ypt))) return some value but they unenable to compare.Qt Code:
void Register::checkKey() { QMessageBox sd; { sd.setText("The registration key doesn't exist.\n"); sd.exec(); exit(0); } kFile.close(); char ser[22]; hdidnt(ser); char *crypt = hash.toUtf8().data(); encrypt(crypt, "key"); MD5 md; { QMessageBox sdf; + test + "\n" \ ); sdf.exec(); sd.setText("This product must have a valid key.\n"); sd.exec(); KeyDialog kDialog; kDialog.exec(); exit(0); } }To copy to clipboard, switch view to plain text mode
Bookmarks