Solved

Drag and Drop at program start-up

Posted on 1999-01-11
2
122 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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

16 Experts available now in Live!

Get 1:1 Help Now