动态分区存储管理的mfc可视化实现


个人写的动态分区存储管理内存的分配与回收,源程序代码
资源截图
代码片段和文件信息
// 2.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “2.h“
#include “2Dlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CMy2App

BEGIN_MESSAGE_MAP(CMy2App CWinApp)
//{{AFX_MSG_MAP(CMy2App)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMy2App construction

CMy2App::CMy2App()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMy2App object

CMy2App theApp;

/////////////////////////////////////////////////////////////////////////////
// CMy2App initialization

BOOL CMy2App::InitInstance()
{
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CMy2Dlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      23920  2011-05-09 22:48  内存存储管理22.aps

     文件       2415  2011-05-09 22:49  内存存储管理22.clw

     文件       2015  2011-05-03 14:54  内存存储管理22.cpp

     文件       4506  2011-05-04 23:13  内存存储管理22.dsp

     文件        525  2011-05-03 16:15  内存存储管理22.dsw

     文件       1279  2011-05-03 14:54  内存存储管理22.h

     文件     181248  2011-05-09 22:50  内存存储管理22.ncb

     文件       1565  2011-05-09 22:49  内存存储管理22.plg

     文件       7678  2011-05-09 22:47  内存存储管理22.rc

     文件       9150  2011-05-04 23:38  内存存储管理22Dlg.cpp

     文件       1567  2011-05-04 23:31  内存存储管理22Dlg.h

     文件        208  2011-05-04 11:46  内存存储管理2fun.h

     文件        203  2011-05-04 10:28  内存存储管理2function.h

     文件       3495  2011-05-03 14:54  内存存储管理2ReadMe.txt

     文件       1934  2011-05-09 22:47  内存存储管理2
ecover.cpp

     文件       1259  2011-05-09 22:47  内存存储管理2
ecover.h

     文件        972  2011-05-03 19:34  内存存储管理2
equest.cpp

     文件       1206  2011-05-03 19:34  内存存储管理2
equest.h

     文件       1277  2011-05-04 23:45  内存存储管理2
esource.h

     文件        203  2011-05-03 14:54  内存存储管理2StdAfx.cpp

     文件       1054  2011-05-03 14:54  内存存储管理2StdAfx.h

     文件      51712  2011-05-09 22:50  内存存储管理22.opt

     文件       4920  2011-05-09 22:48  内存存储管理2Debug2.res

     文件     246784  2011-05-09 22:50  内存存储管理2Debugvc60.idb

     文件    5507044  2011-05-09 22:49  内存存储管理2Debug2.pch

     文件     446464  2011-05-09 22:49  内存存储管理2Debugvc60.pdb

     文件     105425  2011-05-09 22:49  内存存储管理2DebugStdAfx.obj

     文件      29185  2011-05-09 22:49  内存存储管理2Debug
ecover.obj

     文件      12534  2011-05-09 22:49  内存存储管理2Debug
equest.obj

     文件      46317  2011-05-09 22:49  内存存储管理2Debug2Dlg.obj

............此处省略13个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)