c++ - Windows: open a named document -


i'm trying extend existing app called drax edits metadata of mp4 movie files.. want able drag-n-drop files onto it, not support. i've gotten far enough able decode "clipboard" data when dropped, , filter accept file (extensions) can handle. (like so know next no winapi/c++ it's cargo-culted.)

but want trigger opening document, (file) name have in tchar. , i'm stuck. how trigger same sort of action file>open dialog would, when know name of file drag/drop operation?

normally, file -> open dialog not anything allow user choose file name. returns file name you, programmer, with.

but, in case, you're modifying existing application, code has been written. find it, need search method(s) display file -> open dialog. see file name(s) returned open dialog.

all logic opening file crammed same method 1 displays file -> open dialog. if so, refactor code, have separate method like

void openfile(cstring pszfilename, /* other important parameters */) {     // ... } 

that handles opening file, specified string containing full path. call method once file name file -> open dialog, , also elsewhere, after file name drag-drop operation.


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -