I want to use DDX_Text with a member variable of type DBTIMESTAMP:
class CSerialView : public CFormView
{
DECLARE_DYNCREATE(CSerialView)
//.....
public:
DBTIMESTAMP m_ProductionDate; // read from OLEDB consumer class
//.....
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//......
}
void CSerialView::DoDataExchange(CDataExchange* pDX)
{
CFormView::DoDataExchange(pDX);
DDX_Text(pDX, IDC_PRODUCTIONDATE, m_ProductionDate);
}
Compiling is fine, the used syntax of DDX_Text
is listed in Intellisense, so it appears that Microsoft defined this function somewhere, however the linker bails out with error LNK2019. See attached picture.
Build output as listed here:
1>SerialView.obj : error LNK2019: unresolved external symbol "void __stdcall DDX_Text(class CDataExchange *,int,struct tagDBTIMESTAMP &)" (?DDX_Text@@YGXPAVCDataExchange@@HAAUtagDBTIMESTAMP@@@Z) referenced in function "protected: virtual void __thiscall CSerialView::DoDataExchange(class CDataExchange *)" (?DoDataExchange@CSerialView@@MAEXPAVCDataExchange@@@Z)
1>c:\dev\projects\HCPSOrders\Debug\HCPSOrdersApp.exe : fatal error LNK1120: 1 unresolved externals
I am not looking for an explanation of LNK2019 nor LNK1120, I know their meaning. I want to solve this particular error instance: so which reference(s) am I missing?