Click here to Skip to main content
15,894,106 members
Articles / Desktop Programming / Win32

Creation and memory mapping existing DBF files as alternative of data serialization during work with modified CListCtrl classes in virtual mode on dialogs of MDI application

Rate me:
Please Sign up or sign in to vote.
4.64/5 (6 votes)
22 Jul 2009CPOL11 min read 47.2K   1.5K   26  
The demonstration of reading, writing and creation of standard DBF files with random access in memory instead of serialization of typical MFC application for descendants of CListCtrl classes in Virtual Mode.
/////////////////////////////////////////////////////////////////////////////
// MainFrame.h : interface of the CMainFrame class
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_MAINFRAME_H__EMERY_EMERALD__INCLUDED_)
	#define AFX_MAINFRAME_H__EMERY_EMERALD__INCLUDED_

	#if _MSC_VER > 1000
		#pragma once
	#endif // _MSC_VER > 1000

	#include "Main.h"
	#include "MainTabs.h"

	/////////////////////////////////////////////////////////////////////////////
	// Class CMainFrame
	/////////////////////////////////////////////////////////////////////////////
	class CMainFrame : public CMDIFrameWnd {
		DECLARE_DYNAMIC(CMainFrame)

		public:
			CMainFrame();

		// Attributes
		public:
			//*** Main application pointer
			CMainApp *m_pMainApp;
			
			//*** The main tabs object
			CMainTabs m_MainTabs;

		// Operations
		public:

		// Overrides
			// ClassWizard generated virtual function overrides
			//{{AFX_VIRTUAL(CMainFrame)
		public:
			//virtual BOOL PreCreateWindow(CREATESTRUCT &CS);
			//}}AFX_VIRTUAL

		// Implementation
		public:
			virtual ~CMainFrame();
		#ifdef _DEBUG
			virtual void AssertValid() const;
			virtual void Dump(CDumpContext& dc) const;
		#endif

		protected:  // Control bar embedded members
			CStatusBar m_StatusBar;
			CToolBar m_ToolBar;
			CToolBar m_ToolBar2;

		// Generated message map functions
		protected:
			//{{AFX_MSG(CMainFrame)
			afx_msg int OnCreate(LPCREATESTRUCT pCS);
			afx_msg void OnSize(UINT nType, int cx, int cy);
			afx_msg void OnDestroy();
			//}}AFX_MSG

		DECLARE_MESSAGE_MAP()
	};
	//{{AFX_INSERT_LOCATION}}
	// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MAINFRAME_H__EMERY_EMERALD__INCLUDED_)

/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////

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)


Written By
Software Developer
Ukraine Ukraine
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions