请问MFC如何传递CString数组参数?

worship668 worship668 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
希望函数传递CString数组,可是在程序中遇到到问题
CString arrImages[100];
PrintImage(arrImages, theApp.m_nPrintMode);

BOOL WINAPI PrintImage(CString szImage[], BOOL bActual)
{
INT nValue=0,nUnit;
DOCINFO theDocInfo={sizeof(DOCINFO),_T("PrinterTarget"),NULL/*_T("C:\\a.tif")*/};
CImage theImage,theNew;
}

编译提示出错
error LNK2019: 无法解析的外部符号 "int __stdcall PrintImage(class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > * const,int)" (?PrintImage@@YGHQAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@H@Z),该符号在函数 "int __cdecl PrintImageFile(void *)" (?PrintImageFile@@YAHPAX@Z) 中被引用
1>D:\BSS_ALL\Debug\BookScanStation.exe : fatal error LNK1120: 1 个无法解析的外部命令

谢谢大家了先~
...全文

相关推荐

评论 19
收藏 已收藏
分享
返回顶部
worship668
VC/MFC 16,550 成员 421,606 内容