QString temp = QString::fromWCharArray(szModName, MAX_PATH);
if(temp.endsWith(fileName))
{
return;
}
下断后查看:
temp
"g:\Private\Design\VC Project\ZXPlugIn2\Project\Debug\ClientDLL.dll"
[referenced]: 0x00000001
[size]: 0x00000104
d: 0x01e356b0 {ref={...} alloc=0x00000104 size=0x00000104 ...}
fileName
"ClientDLL.dll"
[referenced]: 0x00000001
[size]: 0x0000000d
d: 0x01e1e490 {ref={...} alloc=0x0000000d size=0x0000000d ...}
但是temp.endsWith(fileName)这句始终不能为真,temp.contains(fileName) 却可以,难道是QT的bug?4.5.3版本。