Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
下面函数中的DWORD_PTR有什么用
/*static*/ int FRCPACKAGE::ByHash(FRCPACKAGE* frcpackage1, FRCPACKAGE* frcpackage2, DWORD_PTR) {return _tcsicmp(frcpackage2->Hash(), frcpackage1->Hash());}
它是一个额外的类型参数DWORD_PTR(可能是 an 的 typedefunsigned long *或类似的东西),但因为它没有在函数中使用,所以没有给出名称。这样,大多数编译器都不会发出“未使用的参数”警告。
DWORD_PTR
unsigned long *