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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Opening Text File 2

Status
Not open for further replies.

Bones3

Programmer
Jul 27, 2003
151
US
Is there a way to open a .txt file in notepad when recieving an event in my program? The text file will be stored in the same directory as my exe. I want to open the text file through a main menu item handler function, such as:

CChildView::OnHelpReadMe()
{
// open .txt file
}

-Bones
 
See MSDN documentation on the ShellExecute function

/Per

"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."
 
use CreateProcess

Ion Filipski
1c.bmp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top