Solved

Drag and Drop at program start-up

Posted on 1999-01-11
2
127 Views
Last Modified: 2010-04-06
If I start my program by dragging a file onto its icon
how can I get hold of that file name from the OS?

(C++ Builder 2)

Ta Chris.
0
Comment
Question by:chrishart
2 Comments
 
LVL 12

Accepted Solution

by:
rwilson032697 earned 150 total points
ID: 1355948
The OS just appends the name of the file(s) onto the command line passed to the application.

In Delphi you would use paramcount and paramstr(). In BCB I suppose you use argv & argc.

Cheers,

Raymond.


0
 

Author Comment

by:chrishart
ID: 1355949
Thanks rwilson,

That sorted it. I did look in the help but couldn't find that at all its seems obviios now!

Cheers Chris.
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

803 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