Click here to Skip to main content
15,883,737 members
Articles / Desktop Programming / MFC

A Basic Media Player

Rate me:
Please Sign up or sign in to vote.
4.45/5 (40 votes)
10 Jan 2013GPL33 min read 264K   12.7K   106  
Using MCIWnd wrapper class to write a simple media player
// RegistrySettings.h: interface for the CRegistrySettings class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_REGISTRYSETTINGS_H__7B8DAF8A_73BA_4CC4_9809_B47AC14FB524__INCLUDED_)
#define AFX_REGISTRYSETTINGS_H__7B8DAF8A_73BA_4CC4_9809_B47AC14FB524__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class CRegistrySettings  
{
public:
	CWinApp* pApp;
	int GetPlayRewind();
	int GetPlayAutoStart();
	int GetPlayLoop();
	int GetSettingsVolume();
	void SetPlayRewind(int iEntry);
	void SetPlayAutoStart(int iEntry);
	void SetPlayLoop(int iEntry);
	void SetSettingsVolume(int iEntry);
	CRegistrySettings();
	virtual ~CRegistrySettings();

};

#endif // !defined(AFX_REGISTRYSETTINGS_H__7B8DAF8A_73BA_4CC4_9809_B47AC14FB524__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Chief Technology Officer
Iran (Islamic Republic of) Iran (Islamic Republic of)
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions