LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

About CVI3DGraph ActiveX

Hello,

I am using this ActiveX under CVI 6.0 into a UIR-panel
and the system breaks on
GetUserEvent() or RunUserInterface() functions
-
library function error (return value == -46)
the attribute passed is not valid.
-

as i press a key if the panel that contains the ActiveX is displayed.


How to solve this problem ?



Thanks.

--
MC2.
0 Kudos
Message 1 of 5
(2,711 Views)
[Supersede are not allowed]

MC2 wrote

[...]

I mean «Cw3DGraph ActiveX».
0 Kudos
Message 2 of 5
(2,711 Views)
Hello,
It is hard to tell exactly what's causing the error by just reading your description, but most probably you are not reating VARIANT data type correctly. Please see Library->ActiveX->Variant Related Functions, and their documentations to see if you are using the functions correctly.

Mika Fukuchi
Application Engineer
National Instruments
0 Kudos
Message 3 of 5
(2,711 Views)
Hello,

mfukuchi wrote

> It is hard to tell exactly what's causing the error by just reading
> your description,

this error occurs particularly in the following configuration :

I defined an UIR ("Demo.UIR") that contains three panels.
- the first one contains a CANVAS to load the other panels as Tabs.
- the second one contains a text box.
- the last one contains the ActiveX.


/*==> main.c <==*/

#include
#include
#include "easytab.h"

int main (void)

{
int hpMain, hpCanvas, hpPanel1, hpPanel2,
status;


hpMain = LoadPanel (0, "Demo.uir", MAIN);
hpCanvas = EasyTab_ConvertFromCanvas(hpMain, MAIN_CANVAS);

status = EasyTab_LoadPanels(hpMain, hpCanvas, 1, "demo.uir",
__CVIUserHInst,PANEL_1, &hpPanel1, PANEL_2, &hpPanel
2, 0);

DisplayPanel (hpMain);

RunUserInterface(); /* Breaks on libray error once a key is pressed */
}

--
MC2.
0 Kudos
Message 4 of 5
(2,711 Views)
I am having the same problem with a tabbed control, not using activex. Did anyone ever find out what was going on here?
0 Kudos
Message 5 of 5
(2,711 Views)