Accepting input parameters.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

After my program is associated with a file type, and the user double-clicks
that type of file, my program is launched.

How do I access the input parameters (command line) Windows® sends to my
application so that my application can open the file the user double-cicked?


L. Spiro
 
Dear friend,

I think u know how to get the command line parameters that are being passed
to the application sub main as an array argument.
When u associate a file type with an application, that means in the open
action you are specifying ur application exe's path. IF u try to check the
contents of args[] paramenter, you can find that its the file path that's
being passed. ie args[0] contains the complete path of the file on whichn u
made a double click :)
I dont know, wehter this is the answer you expected.

regards
Sujith S.Varier
 
Back
Top