I am trying to write user input data on a dialog box into Access Database and i getting an error saying " cannot be a zero length string".
my code...
// variable iniat.
m_Item_Name = _T(""
m_Item_Price = COleCurrency(0,0);
//map...in C++ data exchange
DDX_Text(PDX,IDC_item, m_Item_Name);
DDX_Text(PDX,IDC_price, m_Item_Price);
// writeing to record.
recordSet.m_item = m_Item_Name;
recordSet.m_price = m_Iitem_price;
pls tel me where i am going wrong, i tried the program by replacing the item_name field with "Cup" woorks fine,
but i still get error if replaced the price with 2.50, an error saying "binary = "
please Help....
thanks.
my code...
// variable iniat.
m_Item_Name = _T(""
m_Item_Price = COleCurrency(0,0);
//map...in C++ data exchange
DDX_Text(PDX,IDC_item, m_Item_Name);
DDX_Text(PDX,IDC_price, m_Item_Price);
// writeing to record.
recordSet.m_item = m_Item_Name;
recordSet.m_price = m_Iitem_price;
pls tel me where i am going wrong, i tried the program by replacing the item_name field with "Cup" woorks fine,
but i still get error if replaced the price with 2.50, an error saying "binary = "
please Help....
thanks.