Verwendung von LlSetNotificationCallback in Xbase++

Gilt ab List & Label 15
Bei Verwendung der DLL "Bap.dll" in Kombination mit der List & Label API LlSetNotificationCallback kann es unerwartet zu Programmabstürzen kommen.
In diesem Fall empfehlen wir auf die API LlSetNotificationCallbackExt() umzusteigen, hier können Sie zusätzlich noch die Event-ID direkt übergeben.

Hierzu muss die CMBTLL??.PRG erweitert werden:

Im Bereich der Variablendefinitionen aLL??Vars[1] z.B. am Ende:
#define tplLlSetNotificationCallback aLL??Vars[ThreadId(),188]
#define tplLlSetNotificationCallbackExt aLL??Vars[ThreadId(),189]


In LL??LoadTemplates() :

tplLlSetNotificationCallback = DllPrepareCall(xDll,DLL_STDCALL,17)
tplLlSetNotificationCallbackExt = DllPrepareCall(xDll,DLL_STDCALL,100)


Und in den Funktionsdeklarationen selbst:

FUNCTION LlSetNotificationCallback(hLlJob, nMessage)
RETURN DllExecuteCall(tplLlSetNotificationCallback, hLlJob, nMessage)

FUNCTION LlSetNotificationCallbackExt(hLlJob,nEvent, nMessage)
RETURN DllExecuteCall(tplLlSetNotificationCallbackExt, hLlJob, nEvent, nMessage) 
IDKBTD000838 KBTD000838