Hi,
I'm using ADO through VC++ extensions.When we try to add binary data to a binary field in a table using CADORecordBinding class com exceptions do occur.I've tried all the possible options known to me but have no luck till now.Is this problem known or I'm missing something?
Here is the binding class sample
class test : public CADORecordBinding
{
BEGIN_ADO_BINDING(test)
ADO_VARIABLE_LENGTH_ENTRY2( 1, adBinary, m_btid, sizeof(m_btid), m_ulidStatus, TRUE)
ADO_VARIABLE_LENGTH_ENTRY2( 2, adChar, m_szAdd1, sizeof(m_szAdd1), m_ulAdd1Status, TRUE)
ADO_FIXED_LENGTH_ENTRY ( 3, adInteger, m_lIde, m_ulIdeStatus, TRUE)
END_ADO_BINDING()
//Attributes
public:
BYTE m_btid[10];
ULONG m_ulidStatus;
CHAR m_szAdd1[11];
ULONG m_ulAdd1Status;
LONG m_lIde;
ULONG m_ulIdeStatus;
};
Desperately looking for the answer.
Thanks
Mukesh
I'm using ADO through VC++ extensions.When we try to add binary data to a binary field in a table using CADORecordBinding class com exceptions do occur.I've tried all the possible options known to me but have no luck till now.Is this problem known or I'm missing something?
Here is the binding class sample
class test : public CADORecordBinding
{
BEGIN_ADO_BINDING(test)
ADO_VARIABLE_LENGTH_ENTRY2( 1, adBinary, m_btid, sizeof(m_btid), m_ulidStatus, TRUE)
ADO_VARIABLE_LENGTH_ENTRY2( 2, adChar, m_szAdd1, sizeof(m_szAdd1), m_ulAdd1Status, TRUE)
ADO_FIXED_LENGTH_ENTRY ( 3, adInteger, m_lIde, m_ulIdeStatus, TRUE)
END_ADO_BINDING()
//Attributes
public:
BYTE m_btid[10];
ULONG m_ulidStatus;
CHAR m_szAdd1[11];
ULONG m_ulAdd1Status;
LONG m_lIde;
ULONG m_ulIdeStatus;
};
Desperately looking for the answer.
Thanks
Mukesh