Click here to Skip to main content
15,887,683 members
Articles / Programming Languages / C++

SoundAlert

Rate me:
Please Sign up or sign in to vote.
4.75/5 (6 votes)
16 May 2004CPOL2 min read 40.5K   614   18  
Create your own sound alerts to be accessed from the Control Panel, and played by your own program.
// SoundAl.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "SoundAlert.h"

int main(int argc, char* argv[])
{
	CSoundAlert sa;

	sa.CreateGroup(_T("SoundApp"), _T("Sound Scheme Application"));

	sa.Create(_T("Start"), _T("Start Sound"), _T("%systemRoot%\\media\\ding.wav"));

	sa.Play(_T("Start"));

	sa.Delete(_T("Start"));

	sa.DeleteGroup();

	
	return 0;
}

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 Code Project Open License (CPOL)


Written By
Software Developer (Senior)
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions