• 大小: 3.09MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-10-27
  • 语言: C/C++
  • 标签: 正弦  振幅  相位  

资源简介

基于对话框的简单信号发生器,可以产生正弦余弦信号,并且振幅,相位,频率,衰减可调

资源截图

代码片段和文件信息

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

#include “stdafx.h“
#include “Curve.h“
#include “CurveDlg.h“

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

/////////////////////////////////////////////////////////////////////////////
// CCurveApp

BEGIN_MESSAGE_MAP(CCurveApp CWinApp)
//{{AFX_MSG_MAP(CCurveApp)
// 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()

/////////////////////////////////////////////////////////////////////////////
// CCurveApp construction

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

/////////////////////////////////////////////////////////////////////////////
// The one and only CCurveApp object

CCurveApp theApp;

/////////////////////////////////////////////////////////////////////////////
// CCurveApp initialization

BOOL CCurveApp::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

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

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

     文件      35916  2009-04-06 09:12  4.1.2\Curve.aps

     文件       1356  2009-04-09 15:32  4.1.2\Curve.clw

     文件       2049  2004-10-16 14:08  4.1.2\Curve.cpp

     文件       4141  2004-10-16 14:08  4.1.2\Curve.dsp

     文件        535  2004-10-16 14:08  4.1.2\Curve.dsw

     文件     106567  2004-10-20 17:12  4.1.2\Curve.exe

     文件       1313  2004-10-16 14:08  4.1.2\Curve.h

     文件      91136  2009-04-09 15:40  4.1.2\Curve.ncb

     文件     107520  2009-04-09 15:40  4.1.2\Curve.opt

     文件        244  2009-04-08 19:54  4.1.2\Curve.plg

     文件       5945  2009-04-06 09:12  4.1.2\Curve.rc

     文件       5435  2009-04-06 09:13  4.1.2\CurveDlg.cpp

     文件       1368  2009-04-06 08:07  4.1.2\CurveDlg.h

     文件    3671040  2009-04-03 14:26  4.1.2\Debug\Curve.bsc

     文件     106542  2009-04-06 09:13  4.1.2\Debug\Curve.exe

     文件     300700  2009-04-06 09:13  4.1.2\Debug\Curve.ilk

     文件      13841  2009-04-06 08:13  4.1.2\Debug\Curve.obj

     文件    5514316  2009-04-01 11:11  4.1.2\Debug\Curve.pch

     文件     369664  2009-04-06 09:13  4.1.2\Debug\Curve.pdb

     文件       2860  2009-04-06 09:12  4.1.2\Debug\Curve.res

     文件          0  2009-04-03 14:25  4.1.2\Debug\Curve.sbr

     文件      31807  2009-04-06 09:13  4.1.2\Debug\CurveDlg.obj

     文件          0  2009-04-03 14:26  4.1.2\Debug\CurveDlg.sbr

     文件     105472  2009-04-01 11:11  4.1.2\Debug\StdAfx.obj

     文件    1378463  2009-04-03 14:25  4.1.2\Debug\StdAfx.sbr

     文件     205824  2009-04-08 19:54  4.1.2\Debug\vc60.idb

     文件     364544  2009-04-06 09:13  4.1.2\Debug\vc60.pdb

     文件       3561  2004-10-16 14:08  4.1.2\ReadMe.txt

     文件       1078  2004-10-16 14:08  4.1.2\res\Curve.ico

     文件        397  2004-10-16 14:08  4.1.2\res\Curve.rc2

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

评论

共有 条评论