Delphi 7 tguid compare

拈花ヽ惹草 提交于 2020-01-22 18:49:04

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!