简体   繁体   中英

Delphi 7 tguid compare

有没有其他方法来比较2个TGUID元素,除了将它们转换为字符串(guidtostring函数)和评估表达式后,在Delphi 7中?

您可以使用IsEqualGUID API中声明SysUtils单元

IsEqualGUID() (or IsEqualIID()), like TOndrej suggested. You can also use SysUtuils. CompareMem() instead, since TGuid is a binary array of bytes.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM