VC++: How to start a slide show in VC++?
How to start a slide show in VC++?
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.




Comments
Log in or create a user account to comment.