Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Drag and Drop at program start-up

Posted on 1999-01-11
2
Medium Priority
?
145 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 600 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Integration Management Part 2
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

824 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