mmio.cpp

来自「小游戏sameball的vc源码」· C++ 代码 · 共 40 行

CPP
40
字号
//此段代码引自 Eugene Olafsen(美)等著'MFC Programming with Visual C++ 6 Unleashed'
//May.8

//-----------------------------------------------------------------
// MMIO Objects
// C++ Source - MMIO.cpp
//-----------------------------------------------------------------

//-----------------------------------------------------------------
// Inclusions
//-----------------------------------------------------------------
#include "StdAfx.h"
//-----------------------------------------------------------------
#include "MMIO.h"

//-----------------------------------------------------------------
// MFC Debugging Support
//-----------------------------------------------------------------
#ifdef _DEBUG
#undef THIS_FILE
static char BASED_CODE THIS_FILE[] = __FILE__;
#endif


//-----------------------------------------------------------------
// CMMIO Public Methods
//-----------------------------------------------------------------
void
CMMIO::Open(const char* pszFileName, DWORD dwOpenFlags)
{
	ASSERT(AfxIsValidString(pszFileName));
  m_hmmio = ::mmioOpen((char*)pszFileName, NULL, dwOpenFlags);
}

void
CMMIO::Open(CMMMemoryIOInfo &mmioinfo)
{
  m_hmmio = ::mmioOpen(NULL, &mmioinfo, MMIO_READWRITE);
}

⌨️ 快捷键说明

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