【发布时间】:2016-12-11 13:51:47
【问题描述】:
在我的项目中,我声明了一个名为 ReplaceFile 的函数,但是在我的 cpp 中引用它时,我得到了最奇怪的错误。它在我编写的方法的末尾附加了一个“W”。
为什么它会认为我写了 ReplaceFileW?我已经对 ReplaceFileW 进行了项目搜索,但结果一无所获。
如果您需要其他任何内容,请发表评论,否则,这是一个简单的解决方法吗?
这是 ReplaceFile 标头中的声明,它是重载的:
// Description: replace an existing file into the package
void ReplaceFile(std::string path, std::string pathInPackage, void(*replaceProgress)(void*, DWORD,
DWORD) = NULL, void *arg = NULL);
// Description: replace an existing file into the package
void ReplaceFile(std::string path, StfsFileEntry *entry, std::string pathInPackage,
void(*replaceProgress)(void*, DWORD, DWORD) = NULL, void *arg = NULL);
感谢您的宝贵时间。
【问题讨论】:
-
@sashoalm:我认为第一个与重复很接近,但这是一个负面质量问题(OP 将幻想作为事实而不是事实)。
-
@Cheersandhth.-Alf 请相信我,我确实尝试过搜索我的问题。但是是的,第一个在我看来确实是重复的,但没有包含明确的解决方案
-
@mc360pro 我发布了它们,因此它们出现在链接部分(您自己的问题将出现在其中)。