1 #include "stdafx.h" 2 #include "BASSEncodeLibrary.h" 3 4 5 CBASSEncodeLibrary::CBASSEncodeLibrary() 6 { 7 } 8 9 10 CBASSEncodeLibrary::~CBASSEncodeLibrary() 11 { 12 } 13 14 bool CBASSEncodeLibrary::GetFunction() 15 { 16 bool rtn = true; 17 //获取函数入口 18 BASS_Encode_Start = (_BASS_Encode_Start)::GetProcAddress(m_dll_module, "BASS_Encode_Start"); 19 BASS_Encode_Stop = (_BASS_Encode_Stop)::GetProcAddress(m_dll_module, "BASS_Encode_Stop"); 20 BASS_Encode_IsActive = (_BASS_Encode_IsActive)::GetProcAddress(m_dll_module, "BASS_Encode_IsActive"); 21 //判断是否成功 22 rtn &= (BASS_Encode_Start != NULL); 23 rtn &= (BASS_Encode_Stop != NULL); 24 rtn &= (BASS_Encode_IsActive != NULL); 25 return rtn; 26 } 27