Return to Snippet

Revision: 24402
at March 1, 2010 12:06 by jimfred


Initial Code
CString strDirectory;
CString iniFile;

   GetCurrentDirectory(  _MAX_PATH, strDirectory.GetBufferSetLength( _MAX_PATH ) );
   strDirectory.ReleaseBuffer( );

   iniFile.Format( "%s\\%s%s", strDirectory, AfxGetApp()->m_pszExeName, ".ini" );


ShellExecute(NULL, NULL, "notepad", iniFile, strDirectory, SW_SHOWNORMAL);

Initial URL

                                

Initial Description

                                

Initial Title
MFC, edit INI file using ShellExecute

Initial Tags

                                

Initial Language
C++