gpt4 book ai didi

c++ - StrRetToBuf 函数的链接器错误

转载 作者:行者123 更新时间:2023-11-28 03:32:28 25 4
gpt4 key购买 nike

所以我有这个错误: 错误 1 ​​error LNK2019: unresolved external symbol _imp_StrRetToBufW@16 in function _wmain

referenced

我包括:

 #include "stdafx.h"
#include <shlobj.h>
#include <shlwapi.h>
#include <iostream>

我这样调用这个函数:

 StrRetToBuf(&strDispName, pidlItems, pszDisplayName, MAX_PATH);

因此存在链接器错误。有任何修复吗?

最佳答案

StrRetToBuf() 的引用页指出您必须与 Shlwapi.lib 链接。

关于c++ - StrRetToBuf 函数的链接器错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12094802/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com