C++插入音乐教程


教你学会用c++插入背景音乐,播放器功能,实现界面
资源截图
代码片段和文件信息
// LaLa音乐播放器.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “LaLa音乐播放器.h“
#include “LaLa音乐播放器Dlg.h“

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CLaLaApp

BEGIN_MESSAGE_MAP(CLaLaApp CWinApp)
//{{AFX_MSG_MAP(CLaLaApp)
ON_COMMAND(ID_EXIT OnExit)
//}}AFX_MSG_MAP
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CLaLaApp construction

CLaLaApp::CLaLaApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CLaLaApp object

CLaLaApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CLaLaApp initialization
#include “Splash.h“
BOOL CLaLaApp::InitInstance()
{
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
CSplashWnd::EnableSplashScreen
(cmdInfo.m_bShowSplash);
AfxEnableControlContainer();

// Standard initialization
// If you are not using these features and wish to reduce the size
//  of your final executable you should remove from the following
//  the specific initialization routines you do not need.

#ifdef _AFXDLL
Enable3dControls(); // Call this when using MFC in a shared DLL
#else
Enable3dControlsStatic(); // Call this when linking to MFC statically
#endif

CLaLaDlg dlg;
m_pMainWnd = &dlg;
int nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with OK
}
else if (nResponse == IDCANCEL)
{
// TODO: Place code here to handle when the dialog is
//  dismissed with Cancel
}

// Since the dialog has been closed return FALSE so that we exit the
//  application rather than start the application‘s message pump.
return FALSE;
}

void CLaLaApp::OnExit() 
{ CWinApp::OnAppExit();
// TODO: Add your command handler code here

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件    7648328  2010-09-12 21:59  LaLa音乐播放器LaLa音乐播放器.aps

     文件       3614  2010-09-12 22:01  LaLa音乐播放器LaLa音乐播放器.clw

     文件       2201  2010-09-10 14:46  LaLa音乐播放器LaLa音乐播放器.cpp

     文件      10841  2010-09-11 22:16  LaLa音乐播放器LaLa音乐播放器.dsp

     文件        580  2010-09-06 16:15  LaLa音乐播放器LaLa音乐播放器.dsw

     文件       1215  2010-09-10 14:46  LaLa音乐播放器LaLa音乐播放器.h

     文件    3605504  2010-09-12 22:15  LaLa音乐播放器LaLa音乐播放器.ncb

     文件      54784  2010-09-12 22:15  LaLa音乐播放器LaLa音乐播放器.opt

     文件       4076  2010-09-12 17:04  LaLa音乐播放器LaLa音乐播放器.plg

     文件       9688  2010-09-12 16:28  LaLa音乐播放器LaLa音乐播放器.rc

     文件      29083  2010-09-12 17:04  LaLa音乐播放器LaLa音乐播放器Dlg.cpp

     文件       3055  2010-09-12 16:20  LaLa音乐播放器LaLa音乐播放器Dlg.h

     文件      90631  2008-04-14 20:00  LaLa音乐播放器msado15.tlh

     文件      76620  2008-04-14 20:00  LaLa音乐播放器msado15.tli

     文件       3693  2010-09-04 09:45  LaLa音乐播放器ReadMe.txt

     文件    7688192  2010-09-12 17:04  LaLa音乐播放器ReleaseLaLa音乐播放器.exe

     文件      20624  2010-09-12 17:04  LaLa音乐播放器ReleaseLaLa音乐播放器.obj

     文件    6481532  2010-09-12 17:04  LaLa音乐播放器ReleaseLaLa音乐播放器.pch

     文件    7626440  2010-09-12 17:04  LaLa音乐播放器ReleaseLaLa音乐播放器.res

     文件     132440  2010-09-12 17:04  LaLa音乐播放器ReleaseLaLa音乐播放器Dlg.obj

     文件      90747  2009-08-11 03:00  LaLa音乐播放器Releasemsado15.tlh

     文件      76678  2009-08-11 03:00  LaLa音乐播放器Releasemsado15.tli

     文件      17339  2010-09-12 17:04  LaLa音乐播放器ReleaseSplash.obj

     文件        806  2010-09-12 17:04  LaLa音乐播放器ReleaseStdAfx.obj

     文件      74752  2010-09-12 22:14  LaLa音乐播放器Releasevc60.idb

     文件       2599  2010-09-12 17:04  LaLa音乐播放器Releasewmpcdrom.obj

     文件       2221  2010-09-12 17:04  LaLa音乐播放器Releasewmpcdromcollection.obj

     文件       6264  2010-09-12 17:04  LaLa音乐播放器Releasewmpclosedcaption.obj

     文件       6784  2010-09-12 17:04  LaLa音乐播放器Releasewmpcontrols.obj

     文件       3433  2010-09-12 17:04  LaLa音乐播放器Releasewmpdvd.obj

............此处省略74个文件信息

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容, 请发送邮件举报,一经查实,本站将立刻删除。

发表评论

评论列表(条)