Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Easy low tech question about file types

I was looking for a way to have files of certain types open by an application that I create. I happened upon the file type tab under folder options. However, I saw something that intrigued me. After some of the applications, "%1" appeared after the name of the program that after the files. I know it's an argument but is it how the program is told the name of the file? I assume that it's a macro and will expand once the program is open.

Main question: Does "%1" expand to the file name before it is sent to the program or will the program have to resolve the macro for itself?

Comments

  • pingpongpingpong Posts: 937Member
    :
    : Main question: Does "%1" expand to the file name before it is sent to the program or will the program have to resolve the macro for itself?
    :

    It will be expanded, if you have a WinMain, you will get it in the 3rd parameter (the LPSTR lpCmdLine)
Sign In or Register to comment.