資源簡介
用 vc 實現的函數發生器 正弦波 三角波 矩形波

代碼片段和文件信息
//?function.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“function.h“
#include?“functionDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CFunctionApp
BEGIN_MESSAGE_MAP(CFunctionApp?CWinApp)
//{{AFX_MSG_MAP(CFunctionApp)
//?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()
/////////////////////////////////////////////////////////////////////////////
//?CFunctionApp?construction
CFunctionApp::CFunctionApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CFunctionApp?object
CFunctionApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CFunctionApp?initialization
BOOL?CFunctionApp::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
CFunctionDlg?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;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????5358592??2010-04-07?18:56??函數發生器\Debug\function.bsc
?????文件?????110648??2010-04-07?18:56??函數發生器\Debug\function.exe
?????文件?????269472??2010-04-07?18:56??函數發生器\Debug\function.ilk
?????文件??????13128??2010-04-04?18:09??函數發生器\Debug\function.obj
?????文件????6941464??2010-04-03?09:47??函數發生器\Debug\function.pch
?????文件?????402432??2010-04-07?18:56??函數發生器\Debug\function.pdb
?????文件???????2656??2010-04-07?16:43??函數發生器\Debug\function.res
?????文件??????????0??2010-04-04?18:09??函數發生器\Debug\function.sbr
?????文件??????31045??2010-04-07?18:56??函數發生器\Debug\functionDlg.obj
?????文件??????????0??2010-04-07?18:56??函數發生器\Debug\functionDlg.sbr
?????文件?????105684??2010-04-03?09:47??函數發生器\Debug\StdAfx.obj
?????文件????1371818??2010-04-03?09:47??函數發生器\Debug\StdAfx.sbr
?????文件?????214016??2010-04-07?18:56??函數發生器\Debug\vc60.idb
?????文件?????372736??2010-04-07?18:56??函數發生器\Debug\vc60.pdb
?????文件??????35768??2010-04-07?16:43??函數發生器\function.aps
?????文件???????1253??2010-04-07?17:08??函數發生器\function.clw
?????文件???????2091??2010-04-03?09:14??函數發生器\function.cpp
?????文件???????4262??2010-04-04?09:58??函數發生器\function.dsp
?????文件????????524??2010-04-03?09:14??函數發生器\function.dsw
?????文件???????1346??2010-04-03?09:14??函數發生器\function.h
?????文件??????58368??2010-04-07?18:56??函數發生器\function.ncb
?????文件??????53760??2010-04-07?18:56??函數發生器\function.opt
?????文件???????2452??2010-04-07?18:56??函數發生器\function.plg
?????文件???????5486??2010-04-07?16:43??函數發生器\function.rc
?????文件???????7366??2010-04-07?18:56??函數發生器\functionDlg.cpp
?????文件???????1605??2010-04-04?18:08??函數發生器\functionDlg.h
?????文件???????3615??2010-04-03?09:14??函數發生器\ReadMe.txt
?????文件???????1078??2010-04-03?09:14??函數發生器\res\function.ico
?????文件????????400??2010-04-03?09:14??函數發生器\res\function.rc2
?????文件?????191712??2010-04-04?09:52??函數發生器\res\Start.wav
............此處省略9個文件信息
評論
共有 條評論