How do I make it so that .txt files are automatically opened in my Notepad application instead of in the real Notepad?
How do I make it so that .txt files are automatically opened in my Notepad application instead of in the real Notepad?
One more question, how can I open more than one type of file.
Here is my code.
Code:strcat(filter,"Text Files"); \\ Want to open .txt and .npp (notepad plus files, the name of the program) int index = strlen(filter) + 1; filter[index++] = '*'; filter[index++] = '.'; filter[index++] = 't'; filter[index++] = 'x'; filter[index++] = 't'; if(GetOpenFileName(&open_params)) { ..... }
MSDN example: Using Common Dialog Boxes
OPENFILENAME Structure
Seach these boards for even more examples.
gg