添加了以下代码
BSTR pbstrBuffer;
pbstrBuffer = buff.AllocSysString();
构建项目时出现以下错误:
Linking...
Creating library pcciortl.lib and object pcciortl.exp .obj : error LNK2001: unresolved external symbol "public: unsigned short * __thiscall CString::AllocSysString(void)const " (?AllocSysString@CString@@QBEPAGXZ)
c:\pct3/pcciortl.dll : 致命错误 LNK1120: 1 unresolved externals 执行 link.exe 时出错。
其他 CString 方法似乎没问题。我应该怎么办?