由於綁定操作是由宏實現的
class CHasPrpRs : public CADORecordBinding
BEGIN_ADO_BINDING(CHasPrpRs)
ADO_VARIABLE_LENGTH_ENTRY
sizeof(m_ch_TenantIndividualID)
ADO_VARIABLE_LENGTH_ENTRY
sizeof(m_ch_Email)
ADO_VARIABLE_LENGTH_ENTRY
sizeof(m_ch_TenantIDNumber)
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Name)
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Salutation )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Country )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Phone )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_CellPhone )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Fax )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_PHS )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_MoveInDate )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Company )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Actived )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_MemberID )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Language )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Marriage )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Occupation )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_newsletter )
ADO_VARIABLE_LENGTH_ENTRY
sizeof( m_ch_Gender )
END_ADO_BINDING()
public:
//<
TCHAR m_ch_TenantIndividualID[
TCHAR m_ch_Email[
TCHAR m_ch_TenantIDNumber[
TCHAR m_ch_Name[
TCHAR m_ch_Salutation[
TCHAR m_ch_Country[
TCHAR m_ch_Phone[
TCHAR m_ch_CellPhone[
TCHAR m_ch_Fax[
TCHAR m_ch_PHS[
TCHAR m_ch_MoveInDate[
TCHAR m_ch_Company[
TCHAR m_ch_Actived[
TCHAR m_ch_MemberID[
TCHAR m_ch_Language[
TCHAR m_ch_Marriage[
TCHAR m_ch_Occupation[
TCHAR m_ch_newsletter[
TCHAR m_ch_Gender[
//int m_i_TenantIndividualID;
//<
ULONG m_ul_TenantIndividualIDStatus; //
ULONG m_ul_EmailStatus; //
ULONG m_ul_TenantIDNumberStatus; //
ULONG m_ul_NameStatus; //
ULONG m_ul_SalutationStatus; //
ULONG m_ul_CountryStatus; //
ULONG m_ul_PhoneStatus; //
ULONG m_ul_CellPhoneStatus; //
ULONG m_ul_FaxStatus; //
ULONG m_ul_PHSStatus; //
ULONG m_ul_MoveInDateStatus; //datetime //
ULONG m_ul_CompanyStatus; //
ULONG m_ul_Actived ; //
ULONG m_ul_MemberIDStatus; //
ULONG m_ul_LanguageStatus; //
ULONG m_ul_MarriageStatus; //
ULONG m_ul_OccupationStatus; //
ULONG m_ul_newsletterStatus; //
ULONG m_ul_GenderStatus; //
public:
inline void Init()
//m_i_TenantIndividualID=
memset(m_ch_TenantIndividualID
memset(m_ch_Email
memset(m_ch_TenantIDNumber
memset(m_ch_Name
memset(m_ch_Salutation
memset(m_ch_Country
memset(m_ch_Phone
memset(m_ch_CellPhone
memset(m_ch_Fax
memset(m_ch_PHS
memset(m_ch_MoveInDate
memset(m_ch_Company
memset(m_ch_Actived
memset(m_ch_MemberID
memset(m_ch_Language
memset(m_ch_Marriage
memset(m_ch_Occupation
memset(m_ch_newsletter
memset(m_ch_Gender
}
CHasPrpRs()
Init();
};
virtual ~CHasPrpRs()
};如上代碼Point A與Point B之間不能出現冗余變量
From:http://tw.wingwit.com/Article/program/net/201311/12024.html