Solved

Drag and Drop at program start-up

Posted on 1999-01-11
2
125 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
A short film showing how OnPage and Connectwise integration works.

914 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now