问题
Is any other way to compare 2 TGUID elements, except transform them into strings (the guidtostring function) and after evaluate the expression, in Delphi 7?
回答1:
You can use IsEqualGUID API declared in SysUtils.
回答2:
IsEqualGUID() (or IsEqualIID()), like TOndrej suggested. You can also use SysUtuils. CompareMem() instead, since TGuid is a binary array of bytes.
来源:https://stackoverflow.com/questions/4012581/delphi-7-tguid-compare