资源简介
Windows串口编程例子
文件列表:
Data.cpp
Data.h
ReadMe.txt
Resource.h
SerialPort.cpp
SerialPort.h
StdAfx.cpp
StdAfx.h
ver10.aps
ver10.clw
ver10.cpp
ver10.def
ver10.dsp
ver10.dsw
ver10.h
ver10.ncb
ver10.opt
ver10.plg
ver10.rc
ver10.rc2
代码片段和文件信息
// Data.cpp : implementation file
//
#include “stdafx.h“
#include “ver10.h“
#include “Data.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CData
IMPLEMENT_DYNAMIC(CData CRecordset)
CData::CData(CDatabase* pdb)
: CRecordset(pdb)
{
//{{AFX_FIELD_INIT(CData)
m_title = _T(““);
m_ISBN = _T(““);
m_Author = _T(““);
m_Year_Published = 0;
m_Company_Name = _T(““);
m_Au_ID = 0;
m_Author2 = _T(““);
m_Year_Born = 0;
m_HardCover = _T(““);
m_PaperBack = _T(““);
m_BlackWhite = _T(““);
m_Color = _T(““);
m_Grade1 = _T(““);
m_Grade2 = _T(““);
m_Grade3 = _T(““);
m_Grade4 = _T(““);
m_PubID = 0;
m_Name = _T(““);
m_Company_Name2 = _T(““);
m_Address = _T(““);
m_City = _T(““);
m_State = _T(““);
m_Zip = _T(““);
m_Telephone = _T(““);
m_Fax = _T(““);
m_Comments = _T(““);
m_ISBN2 = _T(““);
m_Au_ID2 = 0;
m_title2 = _T(““);
m_Year_Published2 = 0;
m_ISBN3 = _T(““);
m_PubID2 = 0;
m_Description = _T(““);
m_Notes = _T(““);
m_Subject = _T(““);
m_Comments2 = _T(““);
m_Price = _T(““);
m_Pages = 0;
m_nFields = 38;
//}}AFX_FIELD_INIT
m_nDefaultType = dynaset;
}
CString CData::GetDefaultConnect()
{
return _T(“ODBC;DSN=publish“);
}
CString CData::GetDefaultSQL()
{
return _T(“[All titles][Authors][COGS][Publishers][title Author][titles]“);
}
void CData::DoFieldExchange(CFieldExchange* pFX)
{
//{{AFX_FIELD_MAP(CData)
pFX->SetFieldType(CFieldExchange::outputColumn);
RFX_Text(pFX _T(“[All titles].[title]“) m_title);
RFX_Text(pFX _T(“[All titles].[ISBN]“) m_ISBN);
RFX_Text(pFX _T(“[All titles].[Author]“) m_Author);
RFX_Int(pFX _T(“[All titles].[Year Published]“) m_Year_Published);
RFX_Text(pFX _T(“[All titles].[Company Name]“) m_Company_Name);
RFX_Long(pFX _T(“[Authors].[Au_ID]“) m_Au_ID);
RFX_Text(pFX _T(“[Authors].[Author]“) m_Author2);
RFX_Int(pFX _T(“[Year Born]“) m_Year_Born);
RFX_Text(pFX _T(“[HardCover]“) m_HardCover);
RFX_Text(pFX _T(“[PaperBack]“) m_PaperBack);
RFX_Text(pFX _T(“[BlackWhite]“) m_BlackWhite);
RFX_Text(pFX _T(“[Color]“) m_Color);
RFX_Text(pFX _T(“[Grade1]“) m_Grade1);
RFX_Text(pFX _T(“[Grade2]“) m_Grade2);
RFX_Text(pFX _T(“[Grade3]“) m_Grade3);
RFX_Text(pFX _T(“[Grade4]“) m_Grade4);
RFX_Long(pFX _T(“[Publishers].[PubID]“) m_PubID);
RFX_Text(pFX _T(“[Name]“) m_Name);
RFX_Text(pFX _T(“[Publishers].[Company Name]“) m_Company_Name2);
RFX_Text(pFX _T(“[Address]“) m_Address);
RFX_Text(pFX _T(“[City]“) m_City);
RFX_Text(pFX _T(“[State]“) m_State);
RFX_Text(pFX _T(“[Zip]“) m_Zip);
RFX_Text(pFX _T(“[Telephone]“) m_Telephone);
RFX_Text(pFX _T(“[Fax]“) m_Fax);
RFX_Text(pFX _T(“[Publishers].[Comments]“) m_Comments);
RFX_Text(pFX _T(“[title Author].[ISBN]“) m_ISBN2);
RFX_Long(pFX _T(“[title Author].[Au_ID]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3815 2000-03-06 14:45 Data.cpp
文件 1967 2000-02-29 20:11 Data.h
文件 2551 2000-02-29 17:03 ReadMe.txt
文件 377 2000-03-06 10:09 Resource.h
文件 18523 2000-03-06 13:42 SerialPort.cpp
文件 2293 2000-03-06 13:42 SerialPort.h
文件 207 2000-02-29 17:03 StdAfx.cpp
文件 1455 2000-03-06 10:09 StdAfx.h
文件 17872 2000-03-06 14:36 ver10.aps
文件 1812 2000-03-02 15:24 ver10.clw
文件 2531 2000-03-06 17:10 ver10.cpp
文件 181 2000-02-29 17:03 ver10.def
文件 4279 2000-03-02 16:51 ver10.dsp
文件 533 2000-02-29 17:03 ver10.dsw
文件 2957 2000-03-06 16:02 ver10.h
文件 66560 2000-03-06 17:11 ver10.ncb
文件 56832 2000-03-06 17:11 ver10.opt
文件 1437 2000-03-06 16:43 ver10.plg
文件 3399 2000-03-06 10:06 ver10.rc
文件 397 2000-02-29 17:03 ver10.rc2
评论
共有 条评论