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

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

, 22 Jul 2009 CPOL
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.
ModifiedListCtrl04.zip
ModifiedListCtrl04
Bin
Main.exe
Dbf
First.dbf
Second.dbf
Third.dbf
ListCtrlEx
Main.aps
Main.clw
Main.dsp
Main.dsw
Main.ncb
Main.opt
Main.plg
res
Main.ico
MainDoc.ico
Toolbar.bmp
Toolbar2.bmp
Toolbar2_.bmp
/////////////////////////////////////////////////////////////////////////////
// StdAfx.cpp : source file that includes just the standard includes
/////////////////////////////////////////////////////////////////////////////

#include "StdAfx.h"

#if defined(_UNICODE)
	#pragma comment(linker, "/entry:wWinMainCRTStartup")
#endif  // _UNICODE

/////////////////////////////////////////////////////////////////////////////
// _M - Shows an int nVal with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(int nVal) {
	TCHAR szVal[MAXITEMTEXT];

	swprintf(szVal, _T("%d"), nVal);
	AfxMessageBox(szVal);
}

/////////////////////////////////////////////////////////////////////////////
// _M - Shows an CString sStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(CString sStr) {
	TCHAR szVal[MAXITEMTEXT];

	swprintf(szVal, _T("%s"), sStr);
	AfxMessageBox(szVal);
}

/////////////////////////////////////////////////////////////////////////////
// _M - Shows an TCHAR *szStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(TCHAR *szStr) {
	TCHAR szVal[MAXITEMTEXT];

	swprintf(szVal, _T("%s"), szStr);
	AfxMessageBox(szVal);
}
/*
/////////////////////////////////////////////////////////////////////////////
// _M - Shows an wchar_t *szStr with AfxMessageBox
/////////////////////////////////////////////////////////////////////////////
void _M(wchar_t *szStr) {
	TCHAR szVal[MAXITEMTEXT];

	swprintf(szVal, _T("%s"), szStr);
	AfxMessageBox(szVal);
}
*/
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////

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

Emery Emerald
Software Developer
Ukraine Ukraine
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.141220.1 | Last Updated 22 Jul 2009
Article Copyright 2009 by Emery Emerald
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid