Microsoft KB Archive/163234

= PRB: User-defined Formats in OLE Drag-Drop Require Byte Arrays =

Article ID: 163234

Article Last Modified on 5/13/2003

-

APPLIES TO


 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition

-



This article was previously published under Q163234



SYMPTOMS
When using the SetData method for OLE Drag/Drop functionality, data in a user-defined format will cause the following message to be displayed at run- time:

"Non-intrinsic OLE drag-and-drop formats used with SetData require Byte array data. GetData may return more bytes than were given to SetData."



RESOLUTION
To work around this behavior, make sure that the data being dragged is placed into a byte array. Decoding the byte array using the GetData is then dependent upon the methods by which this array was created.



STATUS
This behavior is by design.



MORE INFORMATION
The following formats are known formats when using SetData and GetData:   Name       Constant -    Text       vbCFText Metafile  vbCFMetafile DIB       vbCFDIB Bitmap    vbCFBitmap Palette   vbCFPalette Rich Text vbCFRTF DDE Link  vbCFLink

Additional query words: kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbOLE

Keywords: kbprb KB163234

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.