How to open a file in your program by default

How to programmatically open a file in my program by default (I use Windows XP).

For example, opening * .txt will open the file in notepad.

+3
source share
1 answer

ShellExecute function

Provided for this.

+7
source

Source: https://habr.com/ru/post/1772085/


All Articles