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
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