The information in this article applies to:
SYMPTOMSIn OLE drag and drop, when using COleDataSource::DelayRenderFileData() with the default second parameter of NULL, COleDataSource::OnRenderFileData() may not be called to request the actual data. CAUSE
When you call COleDataSource::DelayRenderFileData() with a clipboard format
such as CF_TEXT (or any other clipboard format) and the second parameter
FORMATETC is not specified (defaulting to NULL), _AfxFillFormatEtc() gets
called. This function creates a FORMATETC structure and populates it with
default values--it fills the "tymed" member of the FORMATETC structure with
-1. Because the "tymed" member is a DWORD, the value is effectively
0xffffffff, and therefore all TYMED enumerations are supported.
RESOLUTIONThe workaround is to call COleDataSource::DelayRenderFileData() with the second parameter explicitly specified. For example:
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. We are researching this bug and will post
new information here in the Microsoft Knowledge Base as it becomes
available.
Additional query words: 0x80040064 [ASCII 150]2147745892
Keywords : kbole kbMFC kbVC kbVC200bug kbVC210bug kbVC220bug kbVC400bug kbVC410bug kbVC420bug kbVC500bug kbVC600bug |
Last Reviewed: July 21, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |