Ans: The API function ShellExecute( ) allows to start a slide show in VC++ using a switch ‘/s’ as follows.
int OnCreate ( LPCREATESTRUCT l )
{
CFrameWnd::OnCreate ( l ) ;
ShellExecute ( m_hWnd, “open”, “C:\\Program Files\\Microsoft Office\\Office\\powerpoint.exe”,
“/s c:\\first.ppt”, 0, SW_SHOWMAXIMIZED ) ;return 0 ;
}
This will start slide show of ‘first.ppt’ which is in root directory.