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

📄 ref.cpp

📁 基于Tapi 3.0的软电话源代码
💻 CPP
字号:
//-----------------------------------------------------------------------
//  Copyright (c) 2002 Avaya Global SME Solutions 
//-----------------------------------------------------------------------
//  Project name: TAPI 3 Test Harness
//  Module file : ref.cpp
//  Compiler    : Visual C++ 6.0
//-----------------------------------------------------------------------
//  Description : Implementation of the CRef class. Class handles 
//                incrementing/decrementing of number of used instances                 
//-----------------------------------------------------------------------

#include "stdafx.h"
#include "Ref.h"

// Construction/Destruction
CRef::CRef()
{
	m_Ref = 1;
}

CRef::~CRef()
{
}

int CRef::AddRef()
{
	m_Ref++;
	return m_Ref;
}

int CRef::Release()
{
	int l = --m_Ref;
	
	if (l == 0) delete this;
	return l;
}

⌨️ 快捷键说明

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