Error 1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: int __thiscall CExportCurve::GetCalibration(struct _CURVEITEM *,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >,double *)" ([email protected]@@QAEHPAU_CURVEITEM@@[email protected][email protected][email protected]@ATL@@@@@ATL@@[email protected]) referenced in function "public: void __thiscall CDataDownloadDlg::GetCurveCilebParam(unsigned char *)" ([email protected]@@[email protected])
Error 2 error LNK2001: unresolved external symbol "__declspec(dllimport) public: int __thiscall CExportCurve::GetCalibration(struct _CURVEITEM *,class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > >,double *)" ([email protected]@@QAEHPAU_CURVEITEM@@[email protected][email protected][email protected]@ATL@@@@@ATL@@[email protected])
原本是VC6的代码,我迁移到VS2010后,把其他错误全解决了,就剩下这2个不知道是什么意思了。求大神帮忙,谢谢。
附上错误提示中的函数代码:
BOOL CExportCurve::GetCalibration(PCURVEITEM pCurveItem,CString strFileName,double* dCaliBuff)
{
CString strCurveSign;
strCurveSign=pCurveItem->t_strCurveSign;
if(strCurveSign=="Pre1" || strCurveSign=="PRE1")
{
m_PreCurve1.ReadCalibration(strFileName,dCaliBuff);
}
if(strCurveSign=="Pre2" || strCurveSign=="PRE2")
{
m_PreCurve2.ReadCalibration(strFileName,dCaliBuff);
}
if(strCurveSign=="Temp1" || strCurveSign=="TEMP1")
{
m_TempCurve1.ReadCalibration(strFileName,dCaliBuff);
}
if(strCurveSign=="Temp2" || strCurveSign=="TEMP2")
{
m_TempCurve2.ReadCalibration(strFileName,dCaliBuff);
}
if(strCurveSign=="Vol" || strCurveSign=="VOL")
{
m_VolCurve.ReadCalibration(strFileName,dCaliBuff);
}
return 0;
}
------解决方案--------------------
lib也用2010重新编一下