-
大小: 7.63MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-08-21
- 语言: 其他
- 标签: cy7c68013A
资源简介
CY7C68013A的上位机源码及文档说明,非常详细,还能显示波形,我在网上找了很久才找到的。
代码片段和文件信息
// CYDEMO.cpp : Defines the class behaviors for the application.
//
#include “stdafx.h“
#include “CYDEMO.h“
#include “CYDEMODlg.h“
#include
#include “CYDEMO_i.c“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CCYDEMOApp
BEGIN_MESSAGE_MAP(CCYDEMOApp CWinApp)
//{{AFX_MSG_MAP(CCYDEMOApp)
// 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()
/////////////////////////////////////////////////////////////////////////////
// CCYDEMOApp construction
CCYDEMOApp::CCYDEMOApp()
{
// TODO: add construction code here
// Place all significant initialization in InitInstance
}
/////////////////////////////////////////////////////////////////////////////
// The one and only CCYDEMOApp object
CCYDEMOApp theApp;
/////////////////////////////////////////////////////////////////////////////
// CCYDEMOApp initialization
BOOL CCYDEMOApp::InitInstance()
{
if (!InitATL())
return FALSE;
AfxEnableControlContainer();
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
if (cmdInfo.m_bRunembedded || cmdInfo.m_bRunAutomated)
{
return TRUE;
}
// 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
CCYDEMODlg dlg;
m_pMainWnd = &dlg;
// 设置背景颜色
SetDialogBkColor(RGB(210210220) RGB(0 0 0));//天蓝
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;
}
CCYDEMOModule _Module;
BEGIN_object_MAP(objectMap)
END_object_MAP()
LONG CCYDEMOModule::Unlock()
{
AfxOleUnlockApp();
return 0;
}
LONG CCYDEMOModule::Lock()
{
AfxOleLockApp();
return 1;
}
LPCTSTR CCYDEMOModule::FindOneOf(LPCTSTR p1 LPCTSTR p2)
{
while (*p1 != NULL)
{
LPCTSTR p = p2;
while (*p != NULL)
{
if (*p1 == *p)
return CharNext(p1);
p = CharNext(p);
}
p1++;
}
return NULL;
}
int CCYDEMOApp::ExitInstance()
{
if (m_bATLInited)
{
_Module.RevokeClassobjects();
_Module.Term();
CoUninitialize();
}
return CWinApp::ExitInstance();
}
BOOL
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-11-12 23:02 CY7C68013A上位机及相关文档\
文件 1737033 2013-11-12 15:44 CY7C68013A上位机及相关文档\CY7C68013-A开发文档.pdf
目录 0 2012-10-10 08:20 CY7C68013A上位机及相关文档\CYDEMO\
文件 18 2011-06-01 17:57 CY7C68013A上位机及相关文档\CYDEMO\11.dat
文件 65530 2006-06-28 20:37 CY7C68013A上位机及相关文档\CYDEMO\binfile.bix
文件 42784 2012-06-04 21:05 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.APS
文件 3872 2012-10-10 08:20 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.clw
文件 4356 2012-05-30 15:42 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.cpp
文件 5805 2012-05-29 14:44 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.dsp
文件 650 2006-06-25 23:33 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.dsw
文件 859 2007-06-26 13:45 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.exe.manifest
文件 1437 2012-05-30 10:47 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.h
文件 402 2006-06-22 21:03 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.idl
文件 427008 2012-10-10 08:20 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.ncb
文件 59904 2012-10-10 08:20 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.opt
文件 850 2012-10-10 08:20 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.plg
文件 10932 2012-06-04 21:05 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.rc
文件 175 2006-06-22 21:03 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO.rgs
文件 98571 2012-06-04 11:43 CY7C68013A上位机及相关文档\CYDEMO\CYDEMODlg.cpp
文件 79026 2007-06-26 22:34 CY7C68013A上位机及相关文档\CYDEMO\CYDEMODlg.cpp.bak
文件 4485 2012-05-07 14:40 CY7C68013A上位机及相关文档\CYDEMO\CYDEMODlg.h
文件 965 2007-07-09 18:46 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO_i.c
文件 1311 2007-07-09 18:46 CY7C68013A上位机及相关文档\CYDEMO\CYDEMO_i.h
目录 0 2012-04-19 11:07 CY7C68013A上位机及相关文档\CYDEMO\Debug\
文件 859 2007-06-26 13:45 CY7C68013A上位机及相关文档\CYDEMO\Debug\CYDEMO.exe.manifest
文件 257926 2006-06-28 20:37 CY7C68013A上位机及相关文档\CYDEMO\dumpfile.txt
文件 34233 2006-04-28 23:22 CY7C68013A上位机及相关文档\CYDEMO\ezusbsys.h
文件 33914 2006-04-28 23:12 CY7C68013A上位机及相关文档\CYDEMO\ezusbsys.h.bak
文件 2098 2006-06-25 23:32 CY7C68013A上位机及相关文档\CYDEMO\font.cpp
文件 1042 2006-06-25 23:32 CY7C68013A上位机及相关文档\CYDEMO\font.h
文件 5347 2012-05-28 16:46 CY7C68013A上位机及相关文档\CYDEMO\myezusb.h
............此处省略39个文件信息
评论
共有 条评论