?? ref.cpp
字號(hào):
//-----------------------------------------------------------------------
// 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;
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -