LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CW NumEdit

Hello,
trying to catch the events with an ActiveX CWNumEdit, I have got an error during the installation of the callback.

Here's my code :

iStat = GetObjHandleFromActiveXCtrl (panelHandle,PANEL_CWGRAPH_DYN, &g_ObjNum);
if( iStat==UIENoError )
{
hResult = CWUIControlsLib__DCWNumEditEventsRegOnValueChanged (g_ObjNum, C_Obj_NumEditOnValueChanged, NULL, 1, NULL);
if FAILED( hResult )
{
char sErr[200+1];
CA_GetAutomationErrorString( hResult, sErr, 200);
}
}

I've got hResult = -2147467262 which does mean "interface not implemented".

What's wrong ?
0 Kudos
Message 1 of 2
(2,951 Views)
Sorry, I've found the problem. the constant name was a CWGraph not a CWNumEdit.

Excuse me and forget my message .
0 Kudos
Message 2 of 2
(2,951 Views)