windows - Making a C++ application "Opened with..." -
i'm working on (c++) program more or less revolves around renaming files. make can select file, right-mouse click , select "open with" , select application. got context menu part figured out, don't know how c++ part.
in other words, how make program (in c++) can opened file (so context menu or directly opening it) , process file?
example: in windows, associate ".roberto" extension "c:\program files\myprogram\myprogram.exe". if open ".roberto" file, command prompt pops up, displaying name of selected file.
i hope clear, not sure how explain this. had trouble searching on question, please forgive me if has been asked before. thanks.
on windows platform in mfc-based application done automatically framework in initinstance()
method of application class:
enableshellopen(); registershellfiletypes(true);
important: in general functionality framework dependent , os speicific.
Comments
Post a Comment