CStreamRowset returning E_NOINTERFACE for VC7
Robert Sedor <[email protected]> Fri, 9 Aug 2002 11:13:51 -0400
| Newsgroups | gmane.comp.windows.devel.oledb.devel |
|---|---|
| Message-ID | <[email protected]> |
I have a command object executing and returning data, but when BindAccessors is called, it attempts to QI for an IAccessor interface, and the value passed was from GetInterface on CStreamRowset. This returns an ISequentialStream * which is not IAccessor. In VC++ 6 I used the knowledge base article to create a CRowsetStream object. My code looks just like the Implementing simple consumer example in MSDN, but the following line always returns E_NOINTERFACE. The data does get into it fine, however. return CCommand<CAccessor<CGetCarrierAccountAccessor>, CStreamRowset >::Open(m_session); _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com You can read messages from the OLEDB_DEV archive, unsubscribe from OLEDB_DEV, or subscribe to other DevelopMentor lists at http://discuss.develop.com.