How to write a program in borland C++, such like notepad can open the file directly
Posted on 2003-02-26
How to write a program, which the description shows as below, in Borland C++ 5.0 or above?
The description is follow:
When you want to open a text file, such as abc.txt,
1. How to write a program when you double click the text file, the file will be opened in the program.
2. How to write a program when you highlight the text file, and then right click to select open with, the file will be opened in the program.
The program is something like notepad, which the file can directly open by drag and drop into notepad or open with notepad.