LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CA_CreateObjectByClassIdEx invalid return code

Based on the sample code for opening an excel spreadsheet, I have the function Excel_NewApp(.....). This function calls CA_CreateObjectByClassIdEx (......). The problem I am having is CA_CreateObjectByClassIdEx returns an error code of 0x80029C4A, which does not seem to be defined in the list of return codes for the function panel. What does this error indicate?

I am using LabWindows 7.0 on a windows xp machine. In addtion, the program using this software is functioning on other windows xp machines.

Thanks
0 Kudos
Message 1 of 4
(3,315 Views)

Hi I3,

This error is coming from the ActiveX server.  It looks like there is a problem with Word's ActiveX server.  I think that the easiest first step might be to uninstall/reinstall Excel (or just MS Office).  Also, take a look at this post which describes rebuilding the ActiveX driver for Word from CVI.

Hope this helps,
Megan B.
National Instruments

Message Edited by Megan B. on 06-14-2006 10:38 AM

0 Kudos
Message 2 of 4
(3,304 Views)
I tried re-installing excel. However, this did not seem to fix the problem. I think I'll try re-installing all of office before rebuilding the ActiveX driver.  Do I have to rebuild the ActiveX driver for Word or Excel since my problem seems to be related to Excel?
0 Kudos
Message 3 of 4
(3,303 Views)
You need to rebuild the Excel driver.

By the way, you can find a list of automation (ActiveX) error codes in this article.

--
Martin
Certified CVI Developer
0 Kudos
Message 4 of 4
(3,288 Views)