Wolfgang Schölmberger
Member
Hi everybody,
OE12.8, Win10 x64
Still struggeling with TAPI. Now I have a C++ code that's definitely working, so I try to translate it to ABL. But I'm stuck with the following code-snippet.
Could somebody help please ?
TIA, Wolf
OE12.8, Win10 x64
Still struggeling with TAPI. Now I have a C++ code that's definitely working, so I try to translate it to ABL. But I'm stuck with the following code-snippet.
Code:
/////////////////////////////////////////////////////////////////////////////
// RegisterTapiEventInterface(CTAPIEventNotification *pTAPIEventNotification)
/////////////////////////////////////////////////////////////////////////////
HRESULT RegisterTapiEventInterface(CTAPIEventNotification *pTAPIEventNotification)
{
HRESULT hr = S_OK;
IConnectionPointContainer *pCPC = NULL;
IConnectionPoint *pCP = NULL;
// Assuming gpTapi is a valid ITTAPI* instance
hr = gpTapi->QueryInterface(IID_IConnectionPointContainer, (void **)&pCPC);
if (SUCCEEDED(hr)) {
hr = pCPC->FindConnectionPoint(IID_ITTAPIEventNotification, &pCP);
pCPC->Release();
}
if (SUCCEEDED(hr)) {
// Advise the connection point, receiving a cookie if necessary
hr = pCP->Advise(pTAPIEventNotification, &g_dwCookie);
pCP->Release();
}
return hr;
}
Could somebody help please ?
TIA, Wolf