• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

Drag and Drop at program start-up

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
chrishart
Asked:
chrishart
1 Solution
 
rwilson032697Commented:
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
 
chrishartAuthor Commented:
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

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now