,, 1 ( ) 1 / CurrentSeries Int ConnectionString CString Style3D BOOL IsContinue Graph BOOL LegendType Int SeriesName CString SeriesColor OL E

Similar documents
标题

概述

6-1 Table Column Data Type Row Record 1. DBMS 2. DBMS MySQL Microsoft Access SQL Server Oracle 3. ODBC SQL 1. Structured Query Language 2. IBM

untitled

Microsoft Word - A doc

4 115,,. : p { ( x ( t), y ( t) ) x R m, y R n, t = 1,2,, p} (1),, x ( t), y ( t),,: F : R m R n.,m, n, u.,, Sigmoid. :,f Sigmoid,f ( x) = ^y k ( t) =

27 :OPC 45 [4] (Automation Interface Standard), (Costom Interface Standard), OPC 2,,, VB Delphi OPC, OPC C++, OPC OPC OPC, [1] 1 OPC 1.1 OPC OPC(OLE f

提问袁小兵:

高 职 计 算 机 类 优 秀 教 材 书 目 * 序 号 书 号 (ISBN) 书 名 作 者 定 价 出 版 / 印 刷 日 期 ** 配 套 资 源 页 码 计 算 机 基 础 课 计 算 机 应 用 基 础 刘 升 贵 年 8 月

ebook50-11

四川省普通高等学校

FY.DOC

9, : Java 19., [4 ]. 3 Apla2Java Apla PAR,Apla2Java Apla Java.,Apla,,, 1. 1 Apla Apla A[J ] Get elem (set A) A J A B Intersection(set A,set B) A B A B

WQ.s92

epub83-1

Microsoft Word - A doc

2013_6_3.indd

untitled

untitled

Microsoft Word 記錄附件

% % 2 (1) 基 层 义 务 教 育 扩 张 的 产 物

ebook140-8

University of Science and Technology of China A dissertation for master s degree Research of e-learning style for public servants under the context of

前言

epub 61-2

北 京 大 学

untitled

ebook 132-2

全 国 高 等 职 业 教 育 规 划 教 材 21 世 纪 高 职 高 专 规 划 教 材 系 列 高 等 职 业 教 育 计 算 机 专 业 规 划 教 材 选 题 征 集 通 知 一 选 题 范 围 ( 不 仅 限 于 此 ) 选 题 方 向 选 题 名 计 算 机 基 础 计 算 机 应 用

Microsoft Word - 期末結案報告

Microsoft Word - 01.DOC

Microsoft Word - 专论综述1.doc

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

. STEM OER STEM 600 STEM CCSS STEM CCSS STEM ISTE Indiana Department of STEM Education 2013 STEM STEM STEM STEM STEM 10 STEM 2017 S

小论文草稿2_邓瀚

chp6.ppt

Microsoft Word - A _ doc

,, 2,,,,,,,,, S7-400 PLC, F M mm ;, AGC 6 mm ;,, 3 AGC AFC ( ) ( ), I/O ET 200M, PROFIBUS-DP S7 400 PLC 1 S7-400 PLC ( HMI) ET200M, PROFIBUS

上海市教育考试院关于印发新修订的

计算机与信息工程系最终.FIT)

Microsoft Word - 王彬_已修改_.doc

. 1 4 Web PAD

10 中 草 药 Chinese Traditional and Herbal Drugs 第 43 卷 第 1 期 2012 年 1 月 生 药 打 粉 入 药 的 基 本 特 点, 借 鉴 材 料 学 粉 体 学 等 学 科 的 研 究 成 果, 在 中 药 传 统 制 药 理 念 的 启 发


<4D F736F F D20C9CFBAA3BFC6BCBCB4F3D1A7D0C5CFA2D1A7D4BA C4EAC7EFBCBEC8EBD1A7B2A9CABFD7CAB8F1BFBCCAD4CAB5CAA9CFB8D4F22D C8B7B6A8B8E5>

VB控件教程大全

untitled

防止夫庭暴力,构建两性和谐

2005硕士论文模版

<4D F736F F F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074>

66 臺 中 教 育 大 學 學 報 : 人 文 藝 術 類 Abstract This study aimed to analyze the implementing outcomes of ability grouping practice for freshman English at a u

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

ebook140-9

Microsoft Word - ch04三校.doc

(),,,,;, , (Π, ), , , 5162 %, U , ,,1992, , : ;

Microsoft Word 定版

CHINA SCIENCE AND TECHNOLOGY DEVELOPMENT REPORT

/ ( ),,,, ;,? ( 311 ),,, 25 9,, 1 2, [8 ] : ( 1637 ),, ( 1636 ), [6 ] 2 ( 8, 1651 ) [9 ],,, 1644 ( 22 ),,, ( ), 4 ( ) 6,,, ( 5 ),, :,,,,,,, ( 1


TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc

第16卷 第2期 邯郸学院学报 年6月

範本檔

( ) [11 13 ] 2 211,,, : (1),, 1990 ( ) ( ),, ; OD, ( ) ( ) ; , ( ), (2) 50 %,, 1999 ( ) ( ) ; (3),,

Schumpeter Mensch Freeman Clark Schumpeter Mensch 1975 technological stalemate 2000 Van Dujin 1977 OECD 1992 Freeman 1982 Van

untitled

untitled

Construction of Chinese pediatric standard database A Dissertation Submitted for the Master s Degree Candidate:linan Adviser:Prof. Han Xinmin Nanjing

WTO

Tenure-track Tenure-track WTO Peer Effect 46

报 告 1: 郑 斌 教 授, 美 国 俄 克 拉 荷 马 大 学 医 学 图 像 特 征 分 析 与 癌 症 风 险 评 估 方 法 摘 要 : 准 确 的 评 估 癌 症 近 期 发 病 风 险 和 预 后 或 者 治 疗 效 果 是 发 展 和 建 立 精 准 医 学 的 一 个 重 要 前

RUN_PC連載_12_.doc

EJB-Programming-4-cn.doc

Transcription:

2007 9 12 5 JOURNAL OF XI AN UN IV ERSITY OF POST AND TEL ECOMMUN ICA TIONS Sep12007 Vol112 No15 TeeChart (, 710121) : ActiveX TeeChart, Visual C + +,,,, :ActiveX ;;Visual C + + : TP311. 1 :A :1007-3264 (2007) 05-0065 - 05 ActiveX Windows,,, TeeChart, TeeChart, TeeChart VC + + TeeChart ActiveX,, ( 1 ) 1 Tchart 2 TeeChart 1 TeeChart [4 ] TeeChart Steema SL 3,VB Del2 phi MS Office TeeChart TeeChart,56 325 125 28, TChart,, TeeChart, :2007-03 - 06 2. 1 2. 1. 1 :(1966 - ),,, (, TchartCtrl ) TchartCtrl Series Color TchartCtrl, TchartCtrl Series, Color 2. 1. 2 [2 ],Automation

66 2007 9,, 1 ( ) 1 / CurrentSeries Int ConnectionString CString Style3D BOOL IsContinue Graph BOOL LegendType Int SeriesName CString SeriesColor OL E COLOR SQLCommand CString Xsource CString Ysource Cstring Update () void,connectionstring,, Microsoft Access 2000 Microsoft SQL Sever 2000 2. 1. 3, DBC,DAO, ADO,, ADO (ActiveX Data Object) 2. 2 2. 2. 1 [3 ] Connection2 String, SQLCommand, XSource, YSource SQLCommand, SQLCom2 mand XSource Ysource X Y 2 ConnectionString m-connectionstring,sqlcommand m sqlcommand,, ADO : RecordCount, MoveFirst ( ), MoveNext ( ), MoveLast (),ado EOF,adoBOF GetCollect ( b bstr str), 2. 2. 2 2,,,, SQLCommand,SeriesName SeriesColor, CurrentSeries 2. 2. 3 OnDraw ( ),, : (1),, ; ; (2) (3) :,, Style3D IsContiuousGraph ; (4),,,,,, 3 3. 1 [1 ] 3. 1. 1 Series

5 :TeeChart 67 Series : Class CSeries {Public : CString SeriesName ; CString SQLCommand ; OL E COLOR SeriesColor ;} ; CSeries, CurrentSeries, Series2 Name,SQLCommand,SeriesColor 3 3. 1. 2 Color color : class color { int r,g,b ;} ; / /, RED, GREEN,BL U E 3. 1. 3 CTChartCtrl : CTChartCtrl, class CTChartCtrl : public COleControl {DECLARE D YNCREA TE( CTChart Ct rl) CSeries series[ MAX SERIES NUM ] ; CTChartCtrl () ; virtual void OnDraw ( CDC 3 CRect & rcbounds, const CRect & rcinvalid) ; 3 p PX) ; pdc, const virtual void DoProp Exchange (CProp Exchange virtual void OnResetState () ; protected : CTChartCtrl () ; void DrawPie (CDC 3 pdc,color c,int start X, int start Y,int endx,int end Y) ; void Draw2DAxise2 (CDC 3 pdc,int xinteval, int xbase, int yinterval, int ybase, int right, int bot2 tom) ; int isdesigning ; BOOL IsInArray ( CString array [ ], CString str,int current) ; void DrawLabel ( CDC 3 pdc, int x, int y, CString label) ; void Draw2DAxis (CDC 3 pdc,int height,int widt h,int perheight,int ynum,int xnum) ; void SelectColor (color 3 c,int i) ; void DrawLegend (int type, color c, CDC 3 pdc,long x1,long y1,long x2,long y2) ; NUM ] ;} ; Recordset Ptr Init Recordset (int i) ; ConnectionPtr mycon [ MAX 3. 2 SERIES,,SQLCommand,SeriesName SeriesColor CurrentSeries : void CTChart Ct rl : :OnSeriesColorChanged () { SetModifiedFlag () ; this - > series[ this - > m currentseries ]. Seri2 escolor = t his - > m seriescolor ;},Update ( ),, : void CTChartCtrl : :Update () { this - > isdesigning = 1 ; InvalidateCont rol () ;} 3. 3 STDAFX. H, : # importc : \ Program Files \ common Files \ system \ ado \ msado15. dllno namespace rename (EOF,ado EOF ),rename (BOF,adoBOF ) msado15. dll COM (initinstance () ) : ) : i) : :Co Initialize (NULL) ; (exitinstance ( ) : :CoUninitialize () ;, : Recordset Ptr CTChartCtrl : : Init Recordset (int { Recordset Ptr myrs ; CommandPtr cmd ; myrs. Create Instance ( uuidof ( Recordset) ) ; cmd. Create Instance ( uuidof ( Command) ) ;

68 2007 9 try{ mycon[i ] - > Open ( bstr t (this - > m con2 nectionstring),,admodeunknown) ; cmd - > ActiveConnection = mycon[ i ] ; cmd - > CommandText = - bstr-t (this - [i ]. SQLCommand) ; myrs = cmd - CmdText) ; ) ; return myrs ; } catch ( com error e) > series > Execute ( NULL, NULL, ad2 { throw new Cexception ( mycon[i ] - > Close () ; return NULL ;}},, X,,,, Series,,,,, 3. 4 CTChartCTL, DrawLegend (),: void CTChart Ct rl : : DrawLegend (int type,color c, CDC 3 pdc, long x1, long y1, long x2,long y2) { CBrush brush (R GB (c. r,c. g,c. b) ) ; CPen pen ( PS SOL ID,1,R GB (c. r,c. g,c. b) ) ; CBrush 3 oldbrush = pdc - > SelectObject ( &brush) ; CPen 3 oldpen = pdc - > SelectObject ( &pen) ; switch (type) {case RECT : pdc - > Rectangle (x1,y1,x2,y2) ;break ;... default : } break ; pdc - > SelectObject (oldpen) ; pdc - > SelectObject (oldbrush) ;} pdc CDC(device context), 4 TeeChart, VC + + 6. 0 Tchart (, ), VB6. 0, : ACCESS 2000, :, Series0 0104,Series1 0105 Se2 ries2 0106,VB :. XSource = StuHome. YSource = total. SeriesName = 0104. SQLCommand = select count ( 3 ) as total, StuHome from student where StuClass =jk0104 group by StuHome. CurrentSeries = 1. SeriesName = 0105. SQLCommand = select count ( 3 ) as total, StuHome from student where StuClass =jk0105 group by StuHome. CurrentSeries = 2. SeriesName = 0106. SQLCommand = select count ( 3 ) as total, StuHome from student where StuClass =jk0106 group by StuHome. Update 3 4 3

5 :TeeChart 69 4 [1 ]. Visual C + + 6 [ M ]. :,2005. [2 ] Don Box,. COM [ M ]. :,2001. [3 ]. Visual C + + 6. 0 [ M ]. :,2004. [4 ] http :/ / www. steema. com. Design and implementation of a statistical chart imitating TeeChart control Q IAO Ping2an (Department of Computer Science, Xi an University of Post and Telecommunications, Xi an 710121,China) Abstract : This design is a statistic chart control using ActiveX technology to simulate Teechart control, and the development tod is C + +. Its main functionality is to read out data from the Database that is specialized. And t hen after a series of processing and computing, finally came out in a chart way. There are seven kinds of legend type in total. And two of them have both static and animate statuses. Key words :ActiveX control ; statistic chart ; Visual C + + (41 ) The research and application of mobile NFC communication terminals L U Kai,M EN G Xu2dong (College of Communications and Information Engineering, Nanjing University of Posts and Telecommunications ; Nanjing 210003, China) Abstract : Wit h t he development of computer network and telecommunications, people need N FC technology more than ever. This paper first introduces basic characteristics of NFC technologies, presents the NFC technol2 ogy architecture. With the basis, it does further research on mobile NFC Communication Terminals and the function modules. Then the concrete applications of NFC technologies are shown. At last, the paper gives a prospective overview on t he application of mobile N FC Communication Terminals. Key words :NFC ;mobile communication terminal ; contactless ; peer - to - peer