/ Published in: C++

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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);
Comments
