How Do I Give My C++ Application The File Path Of The File Clicked To Open
Said Application
I have an application that uses custom file types, and I have associated
these file types with my application (Windows File System). When I double
click the file my application opens, but I would like to be able to pass
in the data from the file.
I had hoped that the file path would have been sent to main, but no such
luck. Whenever I open the application by clicking on a file 'argc' reads
'0'. Opening the application normally give 'argc' as '1'.
Is there a way to pass in the file path used to open the application?
No comments:
Post a Comment