Accessing Word2003 ComAddins gives error 8002801D

R

R. Huvendiek

Hello,

one of our customers has a big problem with Office 2003. We install a com
addin in word/excel. But everytime our program tries to access to com addin
enumeration to find this addin, this fails.

The code that is failing are those lines:
Office::COMAddInsPtr pAddIns = pApp->COMAddIns; // pApp is Word here

long lRun, lAddins = pAddIns->Count;

for( lRun = 1; lRun <= lAddins; ++lRun )
{
Office::COMAddInPtr pAddIn = pAddIns->Item( COleVariant( lRun ) );
CString strD = pAddIn->Description;
}

Once I access the addins I'll get an 8002801D (tlb not registered) error.
Unfortunately I do not get any information which tlb it does search.
If I do something similar to the above code using VBA inside Word it will
work fine.

We already tried to repair and reinstall Office 2003. The problem did not go
away.

Is there anything we can do to find out which tlb it searches? We tried
regmon, but this produces an awful amount of output.
Right now we're totally stuck howto narrow down this problem.

Ralf
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top