473,418 Members | 4,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

Create file using drag and drop

I'm trying to create a file using drag and drop.
I want to be able to select a listview item drag it to the shell and create a file.
Each icon in the listview represents a blob in a database.
When I drop onto the shell I want a file created with a specified name containing the data from the database.

I've looked at the FileDrop format but it look to have only the filename and not the data.

TIA
Jan 20 '06 #1
1 4679
Hi Darren,
Welcome to MSDN Newsgroup!

Based on your requirement, I suggest you could use OLE Drag and Drop com
technique to achieve the goal.
The Source of the drag-drop is represented by the IDropSource interface.
The IDropSource contains methods for generating visual feedback, and for
canceling or completing the drag-drop operation. The Target of the
drag-drop is represented by the IDropTarget interface. The Data being
transferred is represented by the IDataObject interface.
So you could take out data form database and use IDropSource interface to
transfer it. And then create a new file with the data from IDropSource. You
could refer to the following article to get more information about OLE
Drag/Drop:
Part 1 - Introduction OLE Drag and Drop Introducing the OLE and COM
technologies.
http://www.catch22.net/tuts/dragdrop.asp

Part 2 - OLE Data Transfers All about OLE data types, storage mediums and
data formats.
http://www.catch22.net/tuts/dragdrop2.asp

Part 3 - Implementing IDataObject Standalone implementation of the
IDataObject interface.
http://www.catch22.net/tuts/dragdrop3.asp

Part 4 - Enumerating FORMATETC Standalone implementation of the
IEnumFormatEtc interface.
http://www.catch22.net/tuts/dragdrop4.asp

Part 5 - Drop Source Implementing the IDropSource interface.
http://www.catch22.net/tuts/dragdrop5.asp

Part 6 - Drop Target Implementing the IDropTarget interface.
http://www.catch22.net/tuts/dragdrop6.asp

I hope the above information is helpful for you. If you have any questions,
please feel free to let me know. Thanks and have a nice day!

Best Regards,

Terry Fei [MSFT]
Microsoft Community Support
Get Secure! www.microsoft.com/security
Jan 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: rob | last post by:
I'm trying to create a UI which allows to move objects. I would like to give reall drag and drop feature.. I do not want to give fake drag and drop. When the user selects it should create a...
5
by: Brian Henry | last post by:
I haven't worked much with drag/drop but I am trying to make a form that accepts files to drug onto it from explorer and droped and have the form know the full path and file name of the files...
2
by: Skwerl | last post by:
We just installed a new SAN from Sun and need to migrate several terrabytes over to it from our Windows servers. We've found that drag-and-drop copying files using Explorer is going to be very...
2
by: Vincent | last post by:
I have been given the task of creating a scheduler for a POS program my company sells. They are currently using the Microsoft FlexGrid as the crux of the design. However, I want to be able to...
0
by: raghunadhs | last post by:
Hi all! i am developing an application in v.b 6.0. it consists of some user controls (developed by using Activex controls...)... I am able to drag and drop the user contols on the screen and these...
17
by: radhikams | last post by:
Hi I want to create a drag drop tool box using javascript... Can anyone please guide me in this regard Thanks
3
by: Sirisha | last post by:
Hi ... Is it possible to drag a file from Client Desktop into the Browser Form File Element(input type='file') instead of File Browse? I know that, File drag is possible in the Mozilla Firefox...
16
by: John | last post by:
I am looking for VBA code that will work with Access 2003 to enable dragging and dropping a file/folder name from Windows XP Explorer into an Access form's text box. This is a common functionality...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.