CAObjHandle tsThread = 0;
double measWave[100];
VARIANT tempVariant;
LPUNKNOWN pArray;
ERRORINFO errorInfo;
// measWave array filled with data
CA_VariantSet1DArray (&tempVariant, CAVT_DOUBLE, 100, measWave);
CA_VariantGetIUnknown (&tempVariant, &pArray);
TS_SeqContextGetThread (seqContextCVI, &errorInfo, &tsThread);
TS_ThreadPostUIMessageEx(tsThread, &errorInfo, TS_UIMsg_UserMessageBase + 1, 0, "", pArray, VTRUE);
it generates an error on function CA_VariantGetIUnknown (&tempVariant, &pArray);
with error code 0X80020005 (DISP_E_TYPEMISMATCH - Variant type does not match the type this function requires)
I'm not experienced on ActiveX and I need help to find a way to send an array of doubles to the Operator Interface as an activeX data parameter of PostUIMessageEx() function.