Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version

Address Book

, 6 Aug 2000 CPOL
Address Book application
#define ADDR_FIRST_NAME           1
#define	ADDR_LAST_NAME            2
#define	ADDR_MIDDLE_NAME          3
#define	ADDR_NAME                 4 
#define	ADDR_NICK_NAME            5
#define	ADDR_EMAIL                6
#define	ADDR_HOME_STREET          7
#define	ADDR_HOME_CITY            8	 
#define ADDR_HOME_POSTAL_CODE     9
#define	ADDR_HOME_STATE           10
#define	ADDR_HOME_COUNTRY         11
#define	ADDR_HOME_PHONE           12
#define ADDR_HOME_FAX             13
#define ADDR_CAR_PHONE            14
#define	ADDR_PERSONAL_WEB_PAGE    15
#define	ADDR_BUSINESS_STREET      16
#define	ADDR_BUSINESS_CITY        17
#define	ADDR_BUSINESS_POSTAL_CODE 18
#define	ADDR_BUSINESS_STATE       19
#define	ADDR_BUSINESS_COUNTRY     20 
#define	ADDR_BUSINESS_WEB_PAGE    21
#define	ADDR_BUSINESS_PHONE       22
#define	ADDR_BUSINESS_FAX         23
#define	ADDR_PAGER                24
#define	ADDR_COMPANY              25
#define	ADDR_JOB_TITLE            26
#define	ADDR_DEPARTMENT           27
#define	ADDR_OFFICE_LOCATION      28
#define ADDR_NOTES                29

class CPerson : public CObject
{
public:
	void Empty();
	CString m_strFirstName;
	CString m_strLastName;
	CString m_strMiddleName;
	CString m_strName;
	CString m_strNickName;
	CString m_strEMail;
	CString m_strHomeStreet;
	CString m_strHomeCity;
	CString m_strHomePostalCode;
	CString m_strHomeState;
	CString m_strHomeCountry;
	CString m_strHomePhone;
	CString m_strHomeFax;
	CString m_strCarPhone;
	CString m_strPersonalWebPage;
	CString m_strBusinessStreet;
	CString m_strBusinessCity;
	CString m_strBusinessPostalCode;
	CString m_strBusinessState;
	CString m_strBusinessCountry;
	CString m_strBusinessWebPage;
	CString m_strBusinessPhone;
	CString m_strBusinessFax;
	CString m_strPager;
	CString m_strCompany;
	CString m_strJobTitle;
	CString m_strDepartment;
	CString m_strOfficeLocation;
	CString m_strNotes;

	CPerson & operator = ( CPerson &);
    DECLARE_SERIAL( CPerson )
    // empty constructor is necessary
    CPerson();

    void Serialize( CArchive& archive );
    
    // rest of class declaration
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Xavier John
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 7 Aug 2000
Article Copyright 1999 by Xavier John
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid