Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Openning a text file in Notepad from my application

Status
Not open for further replies.

reneb

Programmer
Aug 8, 2000
43
US
My dialog based application writes several .txt files and I am looking for a way to run notepad so the user can view those files. I read the MSDN and found:
(CWinThread::Run) virtual int Run( );
but I am not sure if this is what I need. All I want is the equivalent of the user clicking the .txt file in windows, which automatically loads notepad. Any suggestions. Thank you in advance.
 
reneb,

Look at ShellExecute() and ShellExecuteEx()

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top