"Siemel Naran" <> wrote in message
news:12Qlc.18380$...
> "Andy Sinclair" <> wrote in message
>
> > ShellExecute(hWnd, "open", "file.txt", NULL, NULL, NULL);
>
> Sorry for the OT for comp.lang.c++, but must the above use notepad.exe?
> Seems no as you don't say notepad.exe in that line. On my system .txt
files
> open with Vi editor.
Well.. that's the users choice...
But you can also read the documentation to find out that you can...
ShellExecute(hWnd, "open", "notepad.exe", "file.txt", NULL, NULL);
- Sten
|