解释下面3句C++代码,在线等
简单才是美 2009-12-07 09:13:37 HINSTANCE hDll;
hDll = LoadLibrary(_T("..\\AliveECGPlugin.dll"));
if( !hDll )
{
hDll = LoadLibrary(_T("AliveECGPlugin.dll"));
}
//DLL
typedef void (*fnBeatDetectorInit)(int nADCUnit, int nADCZero, int nSampleRate);//请解释一下
typedef int (*fnBeatDetectorProcessSample) (int nDatum, double *dHR, char *sAnnotation);
typedef void (*fnFilterInit) (int nSampleRate);
typedef int (*fnFilterProcessSample) (int nDatum);
fnBeatDetectorInit pfnBeatDetectorInit;//请解释一下
fnBeatDetectorProcessSample pfnBeatDetectorProcessSample;
fnFilterInit pfnFilterInit;
fnFilterProcessSample pfnFilterProcessSample;
pfnBeatDetectorInit = (fnBeatDetectorInit) GetProcAddress( hDll,"fnBeatDetectorInit" ); //请解释一下
pfnBeatDetectorProcessSample = (fnBeatDetectorProcessSample) GetProcAddress( hDll,"fnBeatDetectorProcessSample" );
pfnFilterInit = (fnFilterInit) GetProcAddress( hDll,"pfnFilterInit" );
pfnFilterProcessSample = (fnFilterProcessSample) GetProcAddress( hDll,"fnFilterProcessSample" );