【发布时间】:2015-06-10 14:51:21
【问题描述】:
我找到了一个脚本 (http://www.codeproject.com/Articles/28209/Outlook-Drag-and-Drop-in-C),它可以将图像拖到 c# 应用程序中。 (尤其是来自 Outlook) fileDrop 格式用于将图像从我的硬盘复制(拖动)到 c# 应用程序。 这在图像存储在我的硬盘上时效果很好,但是当我尝试直接从我的存储卡(从相机或智能手机(如三星 S3)中)拖动图像时,它就不起作用了。 这些是我从这些图像中获得的拖动格式:
(0): "Shell IDList Array"
(1): "FileContents"
(2): "FileGroupDescriptorW"
(3): "WPD Storage Attributes"
(4): "Preferred DropEffect"
(5): "WPD NSE"
(6): "WPD NSE PnPDevicePath"
(7): "WPD NSE StoragePUID"
(8): "UsingDefaultDragImage"
(9): "DragImageBits"
(10): "DragContext"
(11): "DragSourceHelperFlags"
(12): "InShellDragLoop"
(13): "IsShowingLayered"
(14): "DragWindow"
(15): "IsComputingImage"
(16): "DataObjectAttributes"
(17): "DisableDragText"
(18): "IsShowingText"
(19): "DropDescription"
(20): "ComputedDragImage"
(21): "Logical Performed DropEffect"
(22): "Performed DropEffect"
(23): "Paste Succeeded"
当我尝试访问“FileGroupDescriptorW”时,我收到了非法访问冲突错误。另外,这里似乎缺少“FileGroupDescriptor”? 谁能帮我解决这个问题?我搜索了这个网站和谷歌,但没有找到任何有用的东西。
【问题讨论】:
标签: c# image winforms drag sd-card