Hi, I have a problem with DND from my NSE to explorer in Vista. This feature works well in XP. Also DND works form Explorer to NSE and from NSE to NSE. I am using custom view (not def view) and found in vista. I pass object CDataObject: public IDataObject, IEnumFORMATETC in my view for DoDragDrop. Also I pass IStream object pointer by opening m_file.Open(FileName,(CFile::modeRead)) on call to IDataObject::GetData(). In XP the IStream object is called for IStream::Seek() first and I return E_NOTIMPL. Then It calls for ISequentialStream::Read(). But in Vista ISequentialStream::Read() is not called. So for explorer eventhough gets notification it is not able to copy the file. Also after IStream::Seek() call my IStream object is quired for many unimplemeted interfaces. Any idea what is going on? Looking for valuable ideas. Jomerce
On May 30, 8:03 pm, Jomerce wrote: > Hi, > > I have a problem with DND from my NSE to explorer in Vista. This > feature works well in XP. Also DND works form Explorer to NSE and from > NSE to NSE. > > I am using custom view (not def view) and found in vista. > > I pass object CDataObject: public IDataObject, IEnumFORMATETC in my > view for DoDragDrop. Also I pass IStream object pointer by opening > m_file.Open(FileName,(CFile::modeRead)) on call to > IDataObject::GetData(). > > In XP the IStream object is called for IStream::Seek() first and I > return E_NOTIMPL. Then It calls for ISequentialStream::Read(). > > But in Vista ISequentialStream::Read() is not called. So for explorer > eventhough gets notification it is not able to copy the file. Also > after IStream::Seek() call my IStream object is quired for many > unimplemeted interfaces. > > Any idea what is going on? Looking for valuable ideas. > > Jomerce Yep, Solved, Needs to implement IStream::Stat() and is better to implement IStream::Seek() for vista.