• 大小: 3.65MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-21
  • 语言: C/C++
  • 标签: MFC  

资源简介

采用基于windows API函数的录音程序,可以录音,而且音质很好。

资源截图

代码片段和文件信息

// audio.cpp : Defines the class behaviors for the application.
//

#include “stdafx.h“
#include “audio.h“
#include “audioDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CAudioApp

BEGIN_MESSAGE_MAP(CAudioApp CWinApp)
//{{AFX_MSG_MAP(CAudioApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
//    DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG
ON_COMMAND(ID_HELP CWinApp::onhelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CAudioApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CAudioApp object

CAudioApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CAudioApp initialization

BOOL CAudioApp::InitInstance()
{
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

CAudioDlg 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;
}

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

     文件      20728  2009-11-29 20:04  audio\audio.aps

     文件       1154  2009-11-29 20:04  audio\audio.clw

     文件       2049  2009-11-18 10:47  audio\audio.cpp

     文件       4145  2009-11-18 11:10  audio\audio.dsp

     文件        533  2009-11-18 10:47  audio\audio.dsw

     文件       1313  2009-11-18 10:47  audio\audio.h

     文件      66560  2009-11-29 20:04  audio\audio.ncb

     文件       1204  2009-11-29 20:04  audio\audio.plg

     文件       5339  2009-11-24 11:02  audio\audio.rc

     文件      11440  2009-11-26 10:23  audio\audioDlg.cpp

     文件       2061  2009-11-24 11:02  audio\audioDlg.h

     文件       3561  2009-11-18 10:47  audio\ReadMe.txt

     文件        867  2009-11-24 11:02  audio\resource.h

     文件        207  2009-11-18 10:47  audio\StdAfx.cpp

     文件       1109  2009-11-18 11:00  audio\StdAfx.h

     文件       1078  2009-11-18 10:47  audio\res\audio.ico

     文件        397  2009-11-18 10:47  audio\res\audio.rc2

     文件    5317632  2009-11-29 20:04  audio\Debug\audio.bsc

     文件     214316  2009-11-29 20:04  audio\Debug\audio.ilk

     文件      12729  2009-11-25 09:51  audio\Debug\audio.obj

     文件    7198656  2009-11-25 09:51  audio\Debug\audio.pch

     文件     386048  2009-11-29 20:04  audio\Debug\audio.pdb

     文件       2608  2009-11-25 09:51  audio\Debug\audio.res

     文件          0  2009-11-25 09:51  audio\Debug\audio.sbr

     文件          0  2009-11-29 20:04  audio\Debug\audioDlg.sbr

     文件     117696  2009-11-25 09:51  audio\Debug\StdAfx.obj

     文件    1431722  2009-11-25 09:51  audio\Debug\StdAfx.sbr

     文件     214016  2009-11-29 20:04  audio\Debug\vc60.idb

     文件     380928  2009-11-29 20:04  audio\Debug\vc60.pdb

     文件      36729  2009-11-29 20:04  audio\Debug\audioDlg.obj

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

评论

共有 条评论