gpt4 book ai didi

c++ - PathFileExists 导致链接器错误 2028/2019

转载 作者:行者123 更新时间:2023-11-30 01:50:50 28 4
gpt4 key购买 nike

<分区>

按照此处的说明尝试 PathFileExists:
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773584%28v=vs.85%29.aspx
导致链接器错误 LNK2028 和 LNK2019。
这是我的代码:

char buffer1[] = "C:\\temp\\index.xml";
char *lpStr1;
lpStr1 = buffer1;

int retval;

retval = PathFileExistsA(lpStr1);
if (retval == 1 )
{
this->lbl_stat->Text = "File found!";
}else{
this->lbl_stat->Text = "File not found!";
}

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