Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

RegisterUIMessageCallback Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.RegisterUIMessageCallback ( callbackFuncAddr)

Purpose

Registers a C function as the UIMessage event callback.

Remarks

You can use a C function as the Event callback, instead of using ActiveX events or polling.

Note  Make sure the UIMessagePollingEnabled property is set to False or your callback will not be called.

The callback function must use the following C function prototype:

void __cdecl UIMessageCallback(struct IDispatch *UIMessageDisp);

The UIMessageDisp parameter is the IDispatch pointer to a UIMessage object.

Note  Because this pointer is passed to your callback as a parameter, do not release it when you finish using it.

Note  This method should only be used inside of the sequence editor or user interface.

Parameters

callbackFuncAddr As long

[In] Pass the address of the callback function.


See Also

GetUIMessage

StationOptions.UIMessageDelay

StationOptions.UIMessageMinDelay

UIMessageEvent

UIMessagePollingEnabled


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit