Solved

How to get the target location of a drag and drop from a delphi application to explorer?

Posted on 2006-11-10
4
230 Views
Last Modified: 2010-05-18
Hi all,

I am currently developping an application on which I have to manage the drag and drop.

My question is: How to get the target location of a drag and drop from a delphi application to windows' explorer? i.e if the target is the windows desktop, i have to get 'c:\documents and settings\user\desktop'
0
Comment
Question by:KCTeam
  • 2
  • 2
4 Comments
 

Author Comment

by:KCTeam
ID: 17930198
No One can't help me??
0
 
LVL 4

Expert Comment

by:Meldrachaun
ID: 17954202
0
 

Author Comment

by:KCTeam
ID: 17954245
That is the documentation to do a drag-and-drop file copy, but it doesn't give me the path of the destination folder...

I search the target folder location of a drag and drop from my application to the shell to do some pre-process operation.
0
 
LVL 4

Accepted Solution

by:
Meldrachaun earned 500 total points
ID: 17961483
I've not done this before, but if I were writing an app to do what you are doing, this is where I would start.  Obviously you can't drop something onto the desktop that's not a file, but from the digging I was doing on the above link, I don't think it has to be an existing file that you are dragging.  It looked like it has all the info you need.  Unfortunately none of the Windows API stuff is nearly as simple as Delphi, that's why we have Delphi.  There appeared to be info about windows messages, COM object structures, etc, that could be used to specify what you are doing.  If it's not in there, I don't know where to point you, but I would do some digging in there before you give up on it.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question