Article ID: 218929 - Last Review: October 15, 2002 - Revision: 1.0 FIX: UUID.LIB In VC6 Contains Bad Definition For IViewFilter When Wsed with OLE DBThis article was previously published under Q218929 SYMPTOMS
E_NOINTERFACE is returned when you QueryInterface an OLE DB provider for the IViewFilter interface and the provider is known to properly support the IViewFilter interface. This output is received rather than the expected S_OK.
CAUSE
Your OLE DB consumer may have a different GUID value for IViewFilter obtained when linking with the Uuid.lib file. The library file Uuid.lib installed by Visual C++ 6.0 contains the GUID {3050F2F1-98B5-11CF-BB82-00AA00BDCE0B} for the IViewFilter interface. The correct GUID value for IViewFilter when used in conjunction with Oledb.h is {0C733A9B-2A1C-11CE-ADE5-00AA0044773D}.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article. This bug was corrected in Visual Studio 6.0 Service Pack 3. For more information about Visual Studio service packs, please see the following articles in the Microsoft Knowledge Base: 194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why (http://support.microsoft.com/kb/194022/EN-US/ ) 194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed (http://support.microsoft.com/kb/194295/EN-US/ ) MORE INFORMATION
To verify that you have the correct GUID value for IViewFilter, run the following sample code from your consumer application:
| Article Translations
|
Back to the top
