LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Instanciate MFC ActiveX

Solved!
Go to solution

Hello everbody,

 

I can not figure out a very annoying problem.

 

I build a new ActiveX under MS VC++ 2008 with MFC.

Then in LabVIEW, I use "Automation Open" (OK) then call the method "AboutBox" (generated automatically by VC++) : I get 0x8000ffff (catastrophic failure) error messag. Even if I activate the flag "no window necessary" (flag : windowlessActivate).

 

I am stuck here. Any idea ?

 

Thanks.

0 Kudos
Message 1 of 2
(2,399 Views)
Solution
Accepted by topic author Gustavolne

Problem: I'm trying to use an ActiveX control from LabVIEW. I use the Automation Open function and pass the open reference into an invoke node. The invoke node returns an error: -2147418113 "Catastrophic failure in xxx.vi".

Solution: If you encounter this error you are most likely trying to use an ActiveX Control as you would an ActiveX Server.

 

Full source here : http://digital.ni.com/public.nsf/allkb/E0FA5D83F1E5276B86256C7E005FD83C?OpenDocument


0 Kudos
Message 2 of 2
(2,363 Views)