From: Thomas Heller <theller@py...> - 2004-02-23 20:01:41
I'm looking at the venster test_dragdrop sample, trying to get it to
The reason that it currently crashes is probably the
IDataObject.EnumFormatEtc() method implementation.
Returning E_NOTIMPL from this method makes the sample work.
I will look further into this and report later.
There are other pieces of the code that don't look right:
def QueryGetData(self, this, pFormatetc):
if pFormatetc.contents.cfFormat != self.cfFormat:
elif pFormatetc.contents.dwAspect != DVASPECT_CONTENT:
Invalid value for pFormatetc.
Sounds somewhat different to me...
And, ATL seems to always return E_NOTIMPL in this method.
DataAvailable = property(lambda self: self._getFORMATETC != None)
looks wrong, shouldn't this be
DataAvailable = property(lambda self: self._getFORMATETC() != None)
Get latest updates about Open Source Projects, Conferences and News.