资源简介
程序结构清晰,容易入手。死锁检测,MFC界面,操作简单。方便调试。

代码片段和文件信息
// deadlock.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “deadlock.h“
#include “MainFrm.h“
#include “deadlockDoc.h“
#include “deadlockView.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CDeadlockApp
BEGIN_MESSAGE_MAP(CDeadlockApp CWinApp)
//{{AFX_MSG_MAP(CDeadlockApp)
ON_COMMAND(ID_APP_ABOUT OnAppAbout)
ON_COMMAND(ID_ABOUT OnAbout)
//}}AFX_MSG_MAP
// Standard file based document commands
ON_COMMAND(ID_FILE_NEW CWinApp::OnFileNew)
ON_COMMAND(ID_FILE_OPEN CWinApp::OnFileOpen)
// Standard print setup command
ON_COMMAND(ID_FILE_PRINT_SETUP CWinApp::OnFilePrintSetup)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CDeadlockApp construction
CDeadlockApp::CDeadlockApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CDeadlockApp object
CDeadlockApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CDeadlockApp initialization
BOOL CDeadlockApp::InitInstance()
{
LRobject.DoModal(); //弹出登录注册对话框
if(LRobject.IsExit==true) //保留
exit(0);
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
// Change the registry key under which our settings are stored.
// TODO: You should modify this string to be something appropriate
// such as the name of your company or organization.
SetRegistryKey(_T(“Local AppWizard-Generated Applications“));
LoadStdProfileSettings(); // Load standard INI file options (including MRU)
// Register the application‘s document templates. Document templates
// serve as the connection between documents frame windows and views.
CSingleDocTemplate* pDocTemplate;
pDocTemplate = new CSingleDocTemplate(
IDR_MAINframe
RUNTIME_CLASS(CDeadlockDoc)
RUNTIME_CLASS(CMainframe) // main SDI frame window
RUNTIME_CLASS(CDeadlockView));
AddDocTemplate(pDocTemplate);
// Parse command line for standard shell commands DDE file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
// Dispatch commands specified on the command line
if (!ProcessShellCommand(cmdInfo))
return FALSE;
// The one and only window has been initialized so show and update it.
m_pMainWnd->ShowWindow(SW_SHOW);
m_
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 24 2011-06-04 23:55 死锁检测代码\a.txt
文件 18 2011-06-07 11:33 死锁检测代码\b.txt
文件 17 2011-06-07 11:43 死锁检测代码\c.txt
文件 24 2011-06-07 12:11 死锁检测代码\d.txt
文件 1627964 2011-07-02 18:12 死锁检测代码\deadlock.aps
文件 3826 2012-05-24 15:27 死锁检测代码\deadlock.clw
文件 4402 2011-06-20 23:04 死锁检测代码\deadlock.cpp
文件 5424 2011-06-21 22:46 死锁检测代码\deadlock.dsp
文件 524 2011-06-04 22:01 死锁检测代码\deadlock.dsw
文件 1311 2011-06-20 23:03 死锁检测代码\deadlock.h
文件 181248 2012-05-24 15:27 死锁检测代码\deadlock.ncb
文件 57856 2012-05-24 15:27 死锁检测代码\deadlock.opt
文件 250 2012-05-24 15:23 死锁检测代码\deadlock.plg
文件 14103 2011-06-21 22:42 死锁检测代码\deadlock.rc
文件 1782 2011-06-04 22:01 死锁检测代码\deadlockDoc.cpp
文件 1497 2011-06-04 22:01 死锁检测代码\deadlockDoc.h
文件 17743 2011-07-03 00:33 死锁检测代码\deadlockView.cpp
文件 1953 2011-06-07 00:38 死锁检测代码\deadlockView.h
文件 2072683 2012-05-24 15:23 死锁检测代码\Debug\deadlock.exe
文件 30055 2012-05-24 15:23 死锁检测代码\Debug\deadlock.obj
文件 402432 2012-05-24 15:23 死锁检测代码\Debug\deadlock.pdb
文件 1604596 2012-05-24 15:23 死锁检测代码\Debug\deadlock.res
文件 15506 2012-05-24 15:23 死锁检测代码\Debug\deadlockDoc.obj
文件 69588 2012-05-24 15:23 死锁检测代码\Debug\deadlockView.obj
文件 10706 2012-05-24 15:23 死锁检测代码\Debug\HELP.obj
文件 23484 2012-05-24 15:23 死锁检测代码\Debug\LOGORRGSDlg.obj
文件 23927 2012-05-24 15:23 死锁检测代码\Debug\MainFrm.obj
文件 21202 2012-05-24 15:23 死锁检测代码\Debug\REGISTER.obj
文件 120816 2012-05-24 15:23 死锁检测代码\Debug\StdAfx.obj
文件 405504 2012-05-24 15:23 死锁检测代码\Debug\vc60.pdb
............此处省略31个文件信息
相关资源
- 操作系统c语言模拟文件管理系统844
- C语言课程设计
- 操作系统课设 读写者问题 c语言实现
- c语言电子商务系统
- ROS操作系统入门讲义
- 宠物管理系统课程设计(源码+数据库
- c语言课程设计:客房登记系统源码
- 8位竞赛抢答器的课程设计报告.docx
- VC++MFC课程设计的学生成绩管理系统
- Linux操作系统下C语言编程从零开始
- 操作系统存储管理实验报告c/c++
- C++实现21点游戏
- c++课程设计学生管理系统浙工大源码
- 课程设计: MFC 学生信息管理系统
- dsp课程设计——语音加密.zip
- 广东工业大学数据结构课程设计航空
- 数据结构课程设计扑克牌排序
- c++课程设计宾馆客房管理系统
- c语言课程设计-职工信息管理系统-单
- 飞机票订购系统C语言课程设计报告全
- c++ 课程设计_中国象棋
- 编译原理课程设计-C语言子集编译器
- 操作系统课程设计(银行家算法)附
- 用c写的航空订票系统 航班信息改变
- 信息论课程设计——LZW编码
- 人员管理系统 c语言源码 课程设计专
- MFC课程设计学生管理系统
- vc++课程设计 让计算机来猜测用户“暗
- 现代操作系统第三版高清
- 职工工作量统计系统.rar
评论
共有 条评论