I have this error:
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol "public: int __thiscall CADORecordset::GetFieldValue(wchar_t const *,class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > > &,class ATL::CStringT<wchar_t,class StrTraitMFC<wchar_t,class ATL::ChTraitsCRT<wchar_t> > >)" (?GetFieldValue@CADORecordset@@QAEHPB_WAAV?$CStringT@_WV?$StrTraitMFC@_WV?$ChTraitsCRT@_W@ATL@@@@@ATL@@V23@@Z) referenced in function "public: void __thiscall CEstatisDlg::OnBnClickedQuery(void)" (?OnBnClickedQuery@CEstatisDlg@@QAEXXZ) Estatis C:\Dev2015\Prg\Estatis\EstatisDlg.obj 1
I wrote:
void CEstatisDlg::new_query_pelli(CString &strQuery)
{
strQuery = _T("SELECT * FROM CUTTING ");
return;
}
void CEstatisDlg::OnBnClickedQuery()
{
DWORD lPezzi, lTagliati, lPezziTot, lTagliatiTot, nPelliScan, nPelliCut, nPelliNest;
DOUBLE dArea, dResa, dSecTaglio, dAreaTot, dAreaDic, dSecTaglioTot, dAreaPezziTot, dResaTot, dDich, dPezzi, dDistKnife, dDistKnifeTot;
CString strQuery, strProg, strCodice, strCommessa, strLotto, strMateriale, strOperatore, strAreaCalc;
CString strPezzi, strResa, strTagliati, strTempoTaglio, strDataScanner, strAreaDich, strKnifeCutting;
COleDateTime dtScanner;
CListCtrl *pWnd = (CListCtrl *)GetDlgItem(IDC_LISTA);
m_dwRowTot = 0;
pWnd->ShowWindow(SW_HIDE);
pWnd->DeleteAllItems();
lPezziTot = lTagliatiTot = 0;
dAreaTot = dAreaDic = dSecTaglioTot = dAreaPezziTot = dResaTot = dDistKnifeTot = 0.0;
new_query_pelli(strQuery);
if (m_rsPelli.Open(DB->m_pConnection, strQuery, CADORecordset::openQuery))
{
What I have tried:
I have problem when I open recordset