The information in this article applies to:
SYMPTOMSSome containers respond to change notifications in Paste Link objects by calling GetData() on the linked object with a pointer to a valid DVTARGETDEVICE. This is usually a printer device or something other than the display context, which can be created by the server. In the case where the container is a 16-bit Windows-based application, this may cause an assertion in AFXWIN1.INL line 457. CAUSE
In the case of a 16-bit Windows-based container application, MFCANS32.DLL
attempts to translate the fields of the 16-bit DVTARGETDEVICE structure to
32-bit equivalents and pass the new structure on to the 32-bit MFC-based
server application. In doing this, it uses a copy of the DVTARGETDEVICE
structure containing mis-ordered fields. Specifically, the
tdDeviceNameOffset and the tdDriverNameOffset fields are reversed in order.
This causes any server that attempts to use the DVTARGETDEVICE to create a
valid device context to fail when it uses these fields to call
::CreateDC().
STATUSMicrosoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. This bug was corrected in Microsoft Visual C++, 32-bit Edition, version 2.1 for x86 platforms. Additional query words: 2.00 createdc dvtargetdevice mfcans32
Keywords : kbole kbMFC kbVC |
Last Reviewed: September 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |