FIX: UUID.LIB In VC6 Contains Bad Definition For IViewFilter When Wsed with OLE DB

Article translations Article translations
Article ID: 218929 - View products that this article applies to.
This article was previously published under Q218929
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all

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

STATUS

Microsoft 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

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed

MORE INFORMATION

To verify that you have the correct GUID value for IViewFilter, run the following sample code from your consumer application:

   OLECHAR wszGUID[1024];
   ::StringFromGUID2( IID_IViewFilter, 
                      wszGUID, 
                      sizeof(wszGUID) / sizeof(OLECHAR) );
   ::MessageBoxW( NULL, wszGUID, L"IViewFilter Guid Value", MB_OK );
				
If the message box displays the GUID {0C733A9B-2A1C-11CE-ADE5-00AA0044773D}, then you have a valid GUID for IViewFilter when used with OLE DB.

Properties

Article ID: 218929 - Last Review: October 14, 2013 - Revision: 1.0
APPLIES TO
  • Microsoft Visual C++ 6.0 Enterprise Edition
Keywords: 
kbnosurvey kbarchive kbbug kbfix kbdatabase kbmdacnosweep kbvs600sp3fix KB218929

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com