ADO Binding (compile errors)
-
Hello, I have a strange problem with binding using the macro
BEGIN_ADO_BINDING(CCustomRS)
. Here is my code://SearchCustRS.h
//
//
#define INITGUID
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename_namespace("ADOCG") rename ("EOF", "EndOfFile")
using namespace ADOCG;
#include "icrsint.h"class CSeachCustRS : public CADORecordBinding
{
BEGIN_ADO_BINDING(CSearchCustRS)
ADO_FIXED_LENGTH_ENTRY(1, adInteger, m_lCustomerID, lCustomerIDS, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, m_szCompName, sizeof(m_szCompName), lCompNameS, TRUE)
..
..
END_ADO_BINDING()
public:
LONG m_lCustomerID;
ULONG lCustomerIDS;
CHAR m_szCompName[101];
ULONG lCompNameS;
..
..
};I am getting these errors: syntax: missing ';' before identifier 'ADORowClass' CSearchCustRS::ADORowClass: missing storage-class or type specifiers. The error line is the
BEGIN_ADO_BINDING(CSearchCustRS)
. I have used this method successfully before, but now it will not compile... If anybody has any experience in this area suggestions would be appriciated! Thanks -
Hello, I have a strange problem with binding using the macro
BEGIN_ADO_BINDING(CCustomRS)
. Here is my code://SearchCustRS.h
//
//
#define INITGUID
#import "C:\Program Files\Common Files\System\ADO\msado15.dll" rename_namespace("ADOCG") rename ("EOF", "EndOfFile")
using namespace ADOCG;
#include "icrsint.h"class CSeachCustRS : public CADORecordBinding
{
BEGIN_ADO_BINDING(CSearchCustRS)
ADO_FIXED_LENGTH_ENTRY(1, adInteger, m_lCustomerID, lCustomerIDS, FALSE)
ADO_VARIABLE_LENGTH_ENTRY2(2, adVarChar, m_szCompName, sizeof(m_szCompName), lCompNameS, TRUE)
..
..
END_ADO_BINDING()
public:
LONG m_lCustomerID;
ULONG lCustomerIDS;
CHAR m_szCompName[101];
ULONG lCompNameS;
..
..
};I am getting these errors: syntax: missing ';' before identifier 'ADORowClass' CSearchCustRS::ADORowClass: missing storage-class or type specifiers. The error line is the
BEGIN_ADO_BINDING(CSearchCustRS)
. I have used this method successfully before, but now it will not compile... If anybody has any experience in this area suggestions would be appriciated! Thanks