Thread: I command you with all Might I have

  1. #16
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,397
    You create a file extension association in the registry which links the file extension to your application. When somebody double clicks on a file, Windows will launch your application using the command line "myapp.exe <the file>". It's up to your app to process the command line argument to get the filename to use.

  2. #17
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Need_O2 View Post
    I simply wanted make me able to right click a file and say open with <My app name>
    This has nothing to do with C++ and everything to do with Windows (or whatever operating system you're using).

Popular pages Recent additions subscribe to a feed
Website Security Test