Hello Dave,
The HRESULT E_FAIL is described as "unspecified error" in winerror.h:
// MessageId: E_FAIL
// MessageText:
// Unspecified error
#define E_FAIL _HRESULT_TYPEDEF_(0x80004005L)
In this point only, I am sorry that I cannot tell why the error happens.
Would you tell me more information about how&where IRibbonUI.Invalidate()
is called? What's the host application? Word or Excel? Is it a COM add-in
or a VSTO one?
Here are my researches so far:
1. I tried to reproduce the E_FAIL error with a simple Word COM add-in in
my Vista box. IRibbonUI.Invalidate is called in a button callback, etc,
however, no error is thrown from the line.
2. I queried the issue in the internal data base, and found a report that
says m_pRibbonUI.Invalidate(); may return E_FAIL in mail merge. However,
according to the report log, the issue has been resolved by the developers
in 2006.
3. I queried the error in the internet, and got a lot of hits because
E_FAIL is a very general error.
My next action plan is to consult with some Office developers for their
suggestions on this error message. I appreciate it if you can let me know
the information above. Some code snippets or a reproducible project will be
very helpful for our trouble-shooting.
Thanks,
Jialiang Ge (
[email protected], remove 'online.')
Microsoft Online Community Support
=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================