filemapwindow.cpp

来自「mfc资源大全包含MFC编程各个方面的源码」· C++ 代码 · 共 44 行

CPP
44
字号
/////////////////////////////////////////////////////////////////////
// Class Creator Version 2.0.000 Copyrigth (C) Poul A. Costinsky 1994
///////////////////////////////////////////////////////////////////
// Implementation File FileMapWindow.cpp
// class CWizFileMapWindow
//
// 08/09/1996 14:00                             Author: Poul, Hadas & Oren
///////////////////////////////////////////////////////////////////


#include "stdafx.h"

#include "FileMapWindow.h"


#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif


///////////////////////////////////////////////////////////////////
// class CWizFileMapWindow
#ifdef _DEBUG
typedef CWizFileROFileMapping<CWizFileMapCritSectLocker> VOIDMAP;
typedef CWizTypedFileROFileMapping<CWizFileMapCritSectLocker, double> DOUBLEMAP;
static double Foo()
{
	 
	VOIDMAP	Map(_T("poul.txt"));
	VOIDMAP::Window w = 
		Map.Get(10,40);
	const void *pn = w.GetPtr (20,4);
	int n = *((int *)pn);

	DOUBLEMAP Map1(_T("poul.dat"));
	DOUBLEMAP::Wnd w1 = Map1.Get(0,10);
	double d = w1[3];

	return n*d;
}
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?