⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.wzd

📁 《vc++扩展编程实例》源码。运用Visual C++ 5.0或6.0的高级编程技巧
💻 WZD
字号:
/////////////////////////////////////////////////////////////////////
// Modify the Application Class.
/////////////////////////////////////////////////////////////////////

// 1) define a unique string (use the guidgen.exe application in MFC's \bin)
#define UNIQUE_NAME "{F5EFF561-ECB3-11d1-A18D-DCB3C85EBD34}"

// 2) first thing in the InitInstance() function, open a mutex
BOOL CWzdApp::InitInstance()
{
	m_hOneInstance=::CreateMutex(NULL,FALSE,UNIQUE_NAME);
	if (GetLastError()==ERROR_ALREADY_EXISTS)
	{
		AfxMessageBox("Application already running!");
		return FALSE;
	}

	:	:	:
}

// 3) close mutex when application terminates 
int CWzdApp::ExitInstance() 
{
	CloseHandle(m_hOneInstance);	
	return CWinApp::ExitInstance();
}

/////////////////////////////////////////////////////////////////////
// From: Visual C++ MFC Programming by Example by John E. Swanke
// Copyright (C) 1999 jeswanke. All rights reserved.
/////////////////////////////////////////////////////////////////////

⌨️ 快捷键说明

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