Microsoft PowerPoint - Introduction to Windows Programming and MFC

Size: px
Start display at page:

Download "Microsoft PowerPoint - Introduction to Windows Programming and MFC"

Transcription

1 Introduction to Windows Programming and MFC

2 几个重要的概念 Windows 编程基础与消息机制 MFC 框架

3 重要概念 API SDK DLL and Lib MFC

4 API Application Programming Interface. 其实就是操作系统留给应用程序的一个调用接口, 应用程序通过调用操作系统的 API 而使操作系统去执行应用程序的命令 ( 动作 )

5 用 VC 编写 Windows 程序有两种 : 1. Windows c 方式 (SDK), 2. C++ 方式 : 即对 SDK 函数进行包装, 如 VC 的 MFC,BCB 的 OWL 等

6 早在 DOS 时代就有 API 的概念. 那个时候的 API 是以中断调用的形式 (INT 21h) 提供的, 在 DOS 下跑的应用程序都直接或间接的通过中断调用来使用操作系统功能. 比如将 AH 置为 30h 后调用 INT 21h 就可以得到 DOS 操作系统的版本号

7 在 Windows 中, 系统 API 是以函数调用的方式提供的 同样是取得操作系统的版本号, 在 Windows 中你所要做的就是调用 GetVersionEx() 函数

8 DOS API 通过中断矢量表 Windows API 呢? DLL

9 SDK Software Development Kit. 软件开发工具包 SDK 的一个子集 即开发 Windows 平台下的应用程序所使用的 SDK.

10 SDK 编程就是直接调用 Windows 的 API 进行编程, 平时人们常说 " 用 SDK 写程序 " 就是指用 Windows 的 API 函数来写程序,API 由上千个 API 函数组成 (Win95 的 API 有两千多个 )

11 API 和 SDK 是开发 Windows 应用程序所必需的东西, 所以其它编程框架和类库都是建立在它们之上的, 比如 VCL 和 MFC, 虽然他们比起 SDK 编程 来有着更高的抽象度, 但这丝毫不妨碍它们在需要的时候随时直接调用 API 函数

12 为了使用 API 函数, 我们就要有跟 API 所对应的.H 和.LIB 文件, 而 SDK 正是提供了一整套开发 Windows 应用程序所需的相关文件 范例和工具的 工具包 到此为止, 我们才真正的解释清楚了 SDK 的含义

13 为了解释什么是 SDK. 不得不引入 API 动态链接库 导入库等等概念 ^_^, 不要怕

14 DLL & Lib 库函数 ; 顾名思义是把函数放到库里.. 是别人把一些常用到的函数编完放到一个文件里, 供别人用. 别人用的时候把它所在的文件名用 #include<> 加到里面就可以了. 一般是放到 lib 文件里的... 一般是指编译器提供的可在 c 源程序中调用的函数 可分为两类, 一类是 c 语言标准规定的库函数, 一类是编译器特定的库函数

15 由于版权原因, 库函数的源代码一般是不可见的, 但在头文件中你可以看到它对外的接口 库函数是人家写的程序, 你拿来用在你的程序里.

16 Lib 与 DLL Lib: 静态连接库 DLL: 动态链接库

17 DLL & Lib 第一种情况 : 使用 VC 的时候在 project 里可以选择 Win32 static library 生成静态库 第二种情况 : 选择 win32 dynamic-link library 或者 mfc appwizard (dll) 建立 dll 工程

18 Lib 静态库文件, 可以认为里面封装了一些你的程序需要使用的函数或者资源, 编译的时候使用, 编译后就没有用了. 有两种情况, 静态库文件, 可以认为里面封装了一些你的程序需要使用的函数或者资源, 编译的时候使用, 编译后就没有用了 dll 的引入库

19 例子 #ifndef _MYMATH.H #define _MYMATH.H extern C { int Summary(int n); int Factorial(int n); } #endif

20 mymath.lib int Summary(int n) { int sum=0; int i; for(i=1;i<=n;i++) { sum+=i; } return sum; } int Factorial(int n){ int Fact=1; int i; for(i=1;i<=n;i++){ Fact=Fact*i; } return Fact; } 在 Build 菜单下, 选择 Build 菜单下的 Build mymath.lib Visual C++ 编译链接工程, 在 mymath\debug 目录下生成 mymath.lib 文件

21 在 testdlg.cpp 文件头部, 还要加入头文件 mymath.h: #include "stdafx.h" 由于要使用 mymath.lib 中的函数, 首先 #include "Test.h" 要将 mymath.lib 和 mymath.h 两个文件 #include "TestDlg.h" 拷贝到 test 目录下 然后用 Project->Add to Project->Files 命令, 将 mymath.lib 加入到工程中 #include "mymath.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = FILE ; #endif

22 void CTestDlg::OnSum() { // TODO: Add your control notification handler code here int nsum=summary(10); CString sresult; sresult.format("sum(10)=%d",nsum); AfxMessageBox(sResult); } void CTestDlg::OnFactorial() { // TODO: Add your control notification handler code here int nfact=factorial(10); CString sresult; sresult.format("10!=%d",nfact); AfxMessageBox(sResult); }

23 DLL DLL( 又是一个缩写, 感觉 IT 这个行业里三字头缩写特别多 ), 即 Dynamic Link Library( 动态链接库 ) 我们经常会看到一些.dll 格式的文件, 这些文件就是动态链接库文件, 其实也是一种可执行文件格式 跟.exe 文件不同的是,.dll 文件不能直接执行, 他们通常由.exe 在执行时装入, 内含有一些资源以及可执行代码等

24 Windows 的三大模块就是以 DLL 的形式提供的 (Kernel32.dll,User32.dll, GDI32.dll), 里面就含有了 API 函数的执行代码

25 为了使用 DLL 中的 API 函数, 我们必须要有 API 函数的声明 (.H) 和其导入库 (.LIB) 函数的原型 导入库是为了在 DLL 中找到 API 的入口点 导入库 (.LIB)

26 引入库 - 引入库文件包含被 DLL 导出的函数的名称和位置,DLL 包含实际的函数和数据,

27 DLL 显式连接 - def 文件, 然后这个文件包含了这个动态库的导出信息 隐式链接 (Load-Time Dynamic Linking)- LIB 文件包含被 DLL 导出的函数的一些信息

28 应用程序使用 LIB 文件链接到所需要使用的 DLL 文件, 库中的函数和数据并不复制到可执行文件中 这样当一个或多个应用程序运行是再把程序代码和被调用的函数代码链接起来, 从 而节省了内存资源 在应用程序的可执行文件中, 存放的不是被调用的函数代码 而是 DLL 中所要调用的函数的内存地址

29 DLL 加载时动态链接 - 必须链接在生成 SampleDLL 项目时创建的 SampleDLL.lib 导入库 运行时动态链接 - 应使用与以下代码类似的代码来调用 SampleDLL.dll 导出 DLL 函数

30 Dll Main BOOL APIENTRY DllMain( HANDLE hmodule, ul_reason_for_call, LPVOID lpreserved ) { switch ( ul_reason_for_call ) { case DLL_PROCESS_ATTACHED: break; case DLL_THREAD_ATTACHED: break; case DLL_THREAD_DETACH: break; case DLL_PROCESS_DETACH: break; } return TRUE; }

31 // SampleDLL.cpp // #include "stdafx.h" #define EXPORTING_DLL #include "sampledll.h" BOOL APIENTRY DllMain( HANDLE hmodule, DWORD ul_reason_for_call, LPVOID lpreserved ) { return TRUE; }

32 void HelloWorld() { MessageBox( NULL, TEXT("Hello World"), TEXT("In a DLL"), MB_OK); }

33 // File: SampleDLL.h // #ifndef INDLL_H #define INDLL_H #ifdef EXPORTING_DLL extern declspec(dllexport) void HelloWorld() ; #else extern declspec(dllimport) void HelloWorld() ; #endif #endif

34 // SampleApp.cpp // #include "stdafx.h" 加载式 #include "sampledll.h" int APIENTRY WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance, LPSTR lpcmdline, int ncmdshow) { HelloWorld(); return 0; }

35 运行式... typedef VOID (*DLLPROC) (LPTSTR);... HINSTANCE hinstdll; DLLPROC HelloWorld; BOOL ffreedll; hinstdll = LoadLibrary("sampleDLL.dll"); if (hinstdll!= NULL) { HelloWorld = (DLLPROC) GetProcAddress(hinstDLL, "HelloWorld"); if (HelloWorld!= NULL) (HelloWorld); ffreedll = FreeLibrary(hinstDLL); }

36 MFC MFC 是 API 的封闭, 结合面向对象程序设计的继承性和多态性组成一个个的 " 类 ", 共由一百多个类组成

37 尽管 MFC 比 SDK 方便, 但要深入 VC, 直接去学 MFC 却是不明智的选择 只有在熟悉了 MFC 的运行机制的情况下, 才有可能深入下去

38 SDK 开发流程 From 侯杰深入浅出 MFC

39 几个重要的概念 Windows 编程基础与消息机制 MFC 框架

40 Windows 编程基础与消息机制 Messagebased, event driven! 消息为基础, 事件驱动之

41 Windows 应用程序, 操作系统, 计 算机硬件之间的相互关系 应用程序 消息队列 3 4 操作系统 1 2 输入输出设备 From 侯杰深入浅出 MFC

42 Windows 程序与 windows 的关系 From 侯杰深入浅出 MFC

43 关于消息及消息队列 操作系统是怎样将感知到的事件传递给应用程序的呢? 这是通过消息机制 (Message) 来实现的 操作系统将每个事件都包装成一个称为消息的结构体 MSG 来传递给应用程序, 参看 MSDN MSG 结构定义如下 : typedef struct tagmsg { HWND hwnd; UINT message; WPARAM wparam; LPARAM lparam; DWORD time; POINT pt; } MSG;

44 回顾下 C 语言的进入点 int main (int argc, char *argv[], char *envp[]){ }

45 Windows 程序的入口点 WinMain int CALLBACK WinMain(HINSTANCE hinstance, HINSTANCE hprevinstance, LPSTR lpcmdline, int ncmdshow) {... }

46 大概的过程 User 想要执行一个 windows 程序 操作系统 Shell 感知 Shell 调用加载器把程序加载 Shell 调用 C startup code 初始化 C startup code 调用 WinMain

47 WinMain 初始化, 定义与创建窗口 ; 建立消息循环 ;

48 窗口的创建 创建一个完整的窗口需要经过下面四个操作步骤 : 设计一个窗口类 ; 注册窗口类 ; 创建窗口 ; 显示及更新窗口

49 From 侯杰深入浅出 MFC

50 显示更新窗口 ShowWindow(hwnd,SW_SHOWNORMAL); UpdateWindow(hwnd);

51 WinMain 初始化, 定义与创建窗口 ; 建立消息循环 ;

52 MSG msg; while(getmessage(&msg,null,0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); }

53 窗口生命中枢 WinProc DispatchMessage 把消息分配到哪里去了? 在 USER 模块协助下 把消息送到该窗口的窗口函数中去了 WinProc

54 WinProc 是一个 call back 函数

55 LRESULT CALLBACK WinSunProc( HWND hwnd, // handle to window UINT umsg, // message identifier WPARAM wparam, // first message parameter LPARAM lparam // second message parameter )

56 { switch(umsg) { case WM_CHAR: char szchar[20]; sprintf(szchar,"char is %d",wparam); MessageBox(hwnd,szChar,"weixin",0); break; case WM_LBUTTONDOWN: MessageBox(hwnd,"mouse clicked","weixin",0); HDC hdc; hdc=getdc(hwnd); TextOut(hdc,0,50," 计算机编程语言培训 ",strlen(" 计算机编程语言培训 ")); ReleaseDC(hwnd,hdc); break; }

57 { case WM_PAINT: HDC hdc; PAINTSTRUCT ps; hdc=beginpaint(hwnd,&ps); TextOut(hDC,0,0," 维新培训 ",strlen(" 维新培训 ")); EndPaint(hwnd,&ps); break; case WM_CLOSE: if(idyes==messagebox(hwnd," 是否真的结束?","weixin",MB_YESNO)) { DestroyWindow(hwnd); } break; case WM_DESTROY: PostQuitMessage(0); break; default: return DefWindowProc(hwnd,uMsg,wParam,lParam); } return 0; }

58 例子 建立一个窗口, 窗口下需要有一个循环次数为 T 级的浮点数计算任务 for (int i=0; i<1t;i++){ } +-*/ 请问在这个循环运行过程中, 窗口是否能正常响应窗口关闭按钮?

59 MSG msg; while() { If(PeekMessage(&msg,NULL,0,0,PM_REMOVE)){ if(msg.message==wm_quit) break; TranslateMessage(&msg); DispatchMessage(&msg); } else{ OnIdle(); } }

60 如何建立一个纯 Windows API

61 对话框 modal: 父窗口无效, 直到 我 结束 modalless: 父窗口与对话框共同进行

62 From 侯杰深入浅出 MFC

63 为了做出一个对话框, 必须准备 : 1. 对话框面板 (dialog template) 2. 对话框函数 (dialog procedure) 类似 WinProc, 但是它通常只处理 WM_INITDIALOG 和 WM_COMMAND 两个消息

64 几个重要的概念 Windows 编程基础与消息机制 MFC 框架

65 MFC MFC 是 API 的封闭, 结合面向对象程序设计的继承性和多态性组成一个个的 " 类 ", 共由一百多个类组成

66 PK Application? Instance?

67 回忆下消息循环 { switch(umsg) { case WM_CHAR: char szchar[20]; sprintf(szchar,"char is %d",wparam); MessageBox(hwnd,szChar,"weixin",0); break; case WM_LBUTTONDOWN: MessageBox(hwnd,"mouse clicked","weixin",0); HDC hdc; hdc=getdc(hwnd); TextOut(hdc,0,50," 计算机编程语言培训 ",strlen(" 计算机编程语言培训 ")); ReleaseDC(hwnd,hdc); break; }

68 MFC 利用消息映射表 定义了四个宏和两个数据结构

69 struct AFX_MSGMAP { AFX_MSGMAP* pbasemessagemap; AFX_MSGMAP_ENTRY* lpentries; }; struct AFX_MSGMAP_ENTRY { UINT nmessage; // windows message UINT ncode; // control code or WM_NOTIFY code UINT nid; // control ID (or 0 for windows messages) UINT nlastid; // used for entries specifying a range of control id's UINT nsig; // signature type (action) or pointer to message # AFX_PMSG pfn; // routine to call (or special value) };

70 #define DECLARE_MESSAGE_MAP() \ static AFX_MSGMAP_ENTRY _messageentries[]; \ static AFX_MSGMAP messagemap; \ virtual AFX_MSGMAP* GetMessageMap() const; #define ON_COMMAND(id, memberfxn) \ { WM_COMMAND, 0, (WORD)id, (WORD)id, AfxSig_vv, (AFX_PMSG)memberFxn }, #define BEGIN_MESSAGE_MAP(theClass, baseclass) \ AFX_MSGMAP* theclass::getmessagemap() const \ { return &theclass::messagemap; } \ AFX_MSGMAP theclass::messagemap = \ { &(baseclass::messagemap), \ (AFX_MSGMAP_ENTRY*) &(theclass::_messageentries) }; \ AFX_MSGMAP_ENTRY theclass::_messageentries[] = \ { #define END_MESSAGE_MAP() \ { 0, 0, 0, 0, AfxSig_end, (AFX_PMSG)0 } \ };

71 .h //{{AFX_MSG(CMainFrame) afx_msg int OnCreate(LPCREATESTRUCT lpcreatestruct); afx_msg void OnGeteigen(); //}}AFX_MSG DECLARE_MESSAGE_MAP()

72 .cpp BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd) //{{AFX_MSG_MAP(CMainFrame) ON_WM_CREATE() ON_COMMAND(ID_GETEIGEN, OnGeteigen) //}}AFX_MSG_MAP END_MESSAGE_MAP()

73 MFC 類別主要可分為 列數大群組 : General Purpose classes - 提供字串類別 資料處理類別 ( 如陣列與串列 ), 異常情況處理類別 檔案類別... 等等 Windows API classes - 用來封包 Windows API, 例如視窗類別 對話盒類別 DC 類別... 等等 Application framework classes - 組成應用程式骨幹者, 即此組類別, 包括 Document/View 訊息邦浦 訊息映射 訊息繞行 動態生成 檔案讀寫等等 High level abstractions - 包括工具列 狀態列 分裂視窗 捲動視窗等等 operation system extensions - 包括 OLE ODBC DAO MAPI WinSock ISAPI 等等 From 侯杰深入浅出 MFC

74 From MSDN2001

75 CObject 万类之首!

76 Collection Classes

77 Windows API classes MFC CWinThread WinMain CWinApp - 衍生自 CWinThread; 要知道, 任何 32 位元 Windows 程式至少由一个线程组成 WinProc CWnd - 所有視窗, 不論是主框視窗 子框視窗 對話盒 控制元件 view 視 窗, 都有㆒個對應的 C++ 類別, 你可以想像 視窗 handle 和 C++ 物件 結盟 這些 C++ 類別統統衍生自 CWnd, 也就是說, 凡衍生自 CWnd 之類別才 能收到 WM_ 視窗訊息 (WM_COMMAND 除外 ) 所謂 視窗 handle 和 C++ 物件 結盟, 实际上是 CWnd 物件有一个成员变量 m_hwnd, 就放著對應的視窗 handle HWND hwnd = pwnd->m_hwnd; CCmdTarget - CWnd 的父類別 衍生自它, 類別才能夠處理命令訊息 WM_COMMAND 這個類別是訊息映射以及命令訊息繞行的大部份關鍵, 我將

78 Application framework classes Document/View 文件产生之际, 必须动态创建 Document/View/Frame 三种对象 必须由 Document Template 管理 CDocument

79 CDocument, 可以简单地认为是负责处理数据的类 ; 此外, 它与 CView 搭配 CView 是为了数据的表现而设计的

80 From 侯杰深入浅出 MFC

81 From 侯杰深入浅出 MFC

82 MFC 中, 把一个应用程序所需的 数据处理与显示 的空壳斗做好了, 全是虚函数 有关文件的读写在 CDocument 的 Serialize 函数中, 有关画面显示的操作在 CView 的 OnDraw 或 OnPaint 函数中进行

83 什麼叫做 整個程式會自動運作良 好? 如果按 File/Open,Application Framework 會啟動對話盒讓你指定檔名, 然後自動呼叫 CMyDoc::Serialize 讀檔 Application Framework 還會呼叫 CMyView::OnDraw, 把資料顯示出來 如果螢幕狀態改變, 產生了 WM_PAINT, Framework 會自動呼叫你的 CMyView::OnDraw, 傳㆒個 Display DC 讓你重新繪製視窗內容 如果按 File/Print...,Framework 會自動呼叫你的 CMyView::OnDraw, 這次傳進去的是個 Printer DC, 因此繪圖動作的輸出對象就成了印表機 From 侯杰深入浅出 MFC

84 例子 希望每隔一段时间调用响应某一个事件的进程

85 .h //{{AFX_MSG(CAVIPlayerDlg) virtual BOOL OnInitDialog(); afx_msg void OnTimer(UINT nidevent); //}}AFX_MSG DECLARE_MESSAGE_MAP()

86 .cpp BEGIN_MESSAGE_MAP(CAVIPlayerDlg, CDialog) //{{AFX_MSG_MAP(CAVIPlayerDlg) ON_WM_PAINT() ON_WM_TIMER() //}}AFX_MSG_MAP END_MESSAGE_MAP()

87 void CAVIPlayerDlg::OnTimer(UINT nidevent) { // TODO: Add your message handler code here and/or call default if(nidevent==event_open_avi){ call xxxx; } return; //CDialog::OnTimer(nIDEvent); }

88 m_nopenavitimer=settimer(event_op EN_AVI,40,0);

bingdian001.com

bingdian001.com 1. DLL(Dynamic Linkable Library) DLL ± lib EXE DLL DLL EXE EXE ± EXE DLL 1 DLL DLL DLL Windows DLL Windows API Visual Basic Visual C++ Delphi 2 Windows system32 kernel32.dll user32.dll gdi32.dll windows

More information

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2

BOOL EnumWindows(WNDENUMPROC lparam); lpenumfunc, LPARAM (Native Interface) PowerBuilder PowerBuilder PBNI 2 PowerBuilder 9 PowerBuilder Native Interface(PBNI) PowerBuilder 9 PowerBuilder C++ Java PowerBuilder 9 PBNI PowerBuilder Java C++ PowerBuilder NVO / PowerBuilder C/C++ PowerBuilder 9.0 PowerBuilder Native

More information

INTRODUCTION TO COM.DOC

INTRODUCTION TO COM.DOC How About COM & ActiveX Control With Visual C++ 6.0 Author: Curtis CHOU mahler@ms16.hinet.net This document can be freely release and distribute without modify. ACTIVEX CONTROLS... 3 ACTIVEX... 3 MFC ACTIVEX

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

FY.DOC

FY.DOC 高 职 高 专 21 世 纪 规 划 教 材 C++ 程 序 设 计 邓 振 杰 主 编 贾 振 华 孟 庆 敏 副 主 编 人 民 邮 电 出 版 社 内 容 提 要 本 书 系 统 地 介 绍 C++ 语 言 的 基 本 概 念 基 本 语 法 和 编 程 方 法, 深 入 浅 出 地 讲 述 C++ 语 言 面 向 对 象 的 重 要 特 征 : 类 和 对 象 抽 象 封 装 继 承 等 主

More information

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++;

int *p int a 0x00C7 0x00C7 0x00C int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; Memory & Pointer trio@seu.edu.cn 2.1 2.1.1 1 int *p int a 0x00C7 0x00C7 0x00C7 2.1.2 2 int I[2], *pi = &I[0]; pi++; char C[2], *pc = &C[0]; pc++; float F[2], *pf = &F[0]; pf++; 2.1.3 1. 2. 3. 3 int A,

More information

新版 明解C++入門編

新版 明解C++入門編 511!... 43, 85!=... 42 "... 118 " "... 337 " "... 8, 290 #... 71 #... 413 #define... 128, 236, 413 #endif... 412 #ifndef... 412 #if... 412 #include... 6, 337 #undef... 413 %... 23, 27 %=... 97 &... 243,

More information

epub83-1

epub83-1 C++Builder 1 C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r C + + B u i l d e r 1.1 1.1.1 1-1 1. 1-1 1 2. 1-1 2 A c c e s s P a r a d o x Visual FoxPro 3. / C / S 2 C + + B u i l d e r / C

More information

提问袁小兵:

提问袁小兵: C++ 面 试 试 题 汇 总 柯 贤 富 管 理 软 件 需 求 分 析 篇 1. STL 类 模 板 标 准 库 中 容 器 和 算 法 这 部 分 一 般 称 为 标 准 模 板 库 2. 为 什 么 定 义 虚 的 析 构 函 数? 避 免 内 存 问 题, 当 你 可 能 通 过 基 类 指 针 删 除 派 生 类 对 象 时 必 须 保 证 基 类 析 构 函 数 为 虚 函 数 3.

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 9 [P.11] : Dev C++ [P.12] : http://c.feis.tw [P.13] [P.14] [P.15] [P.17] [P.23] Dev C++ [P.24] [P.27] [P.34] C / C++ [P.35] 10 C / C++ C C++ C C++ C++ C ( ) C++

More information

Microsoft Word - CIN-DLL.doc

Microsoft Word - CIN-DLL.doc 6.3. 调 用 动 态 链 接 库 (DLL) 相 对 于 CIN 来 讲,NI 更 推 荐 用 户 使 用 DLL 来 共 享 基 于 文 本 编 程 语 言 开 发 的 代 码 除 了 共 享 或 重 复 利 用 代 码, 开 发 人 员 还 能 利 用 DLL 封 装 软 件 的 功 能 模 块, 以 便 这 些 模 块 能 被 不 同 开 发 工 具 利 用 在 LabVIEW 中 使 用

More information

ebook51-14

ebook51-14 14 Wi n d o w s M F C 53 54 55 56 ( ) ( Wo r k e r T h r e a d ) 57 ( ) ( U s e r Interface Thread) 58 59 14.1 53 1. 2. C l a s s Wi z a r d O n I d l e () 3. Class Wi z a r d O n I d l e () O n I d l

More information

The golden pins of the PCI card can be oxidized after months or years

The golden pins of the PCI card can be oxidized after months or years Q. 如何在 LabWindows/CVI 編譯 DAQ Card 程式? A: 請參考至下列步驟 : 步驟 1: 安裝驅動程式 1. 安裝 UniDAQ 驅動程式 UniDAQ 驅動程式下載位置 : CD:\NAPDOS\PCI\UniDAQ\DLL\Driver\ ftp://ftp.icpdas.com/pub/cd/iocard/pci/napdos/pci/unidaq/dll/driver/

More information

概述

概述 OPC Version 1.8 build 0925 KOCRDK Knight OPC Client Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOC_Init...5 2.2.2 KOC_Uninit...5 2.3...5

More information

CC213

CC213 : (Ken-Yi Lee), E-mail: feis.tw@gmail.com 49 [P.51] C/C++ [P.52] [P.53] [P.55] (int) [P.57] (float/double) [P.58] printf scanf [P.59] [P.61] ( / ) [P.62] (char) [P.65] : +-*/% [P.67] : = [P.68] : ,

More information

新・明解C言語入門編『索引』

新・明解C言語入門編『索引』 !... 75!=... 48 "... 234 " "... 9, 84, 240 #define... 118, 213 #include... 148 %... 23 %... 23, 24 %%... 23 %d... 4 %f... 29 %ld... 177 %lf... 31 %lu... 177 %o... 196 %p... 262 %s... 242, 244 %u... 177

More information

mvc

mvc Build an application Tutor : Michael Pan Application Source codes - - Frameworks Xib files - - Resources - ( ) info.plist - UIKit Framework UIApplication Event status bar, icon... delegation [UIApplication

More information

MFC 2/e PDF GBK mirror - anyway solution MFC 1/e MFC 2/e

MFC 2/e PDF     GBK mirror - anyway solution MFC 1/e MFC 2/e 2/e 1998/04 MFC 1/e Windows MFC MFC 2/e 1998/05 1998 UNALIS 3/e 2/e 2/e 3/e 3/e MFC 2/e MFC 3/e MFC MFC 2/e VC5+MFC42 VC6+MFC421 MFC 2/e 1 MFC 2/e PDF http://www.jjhou.com http://expert.csdn.net/jjhou

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.06.doc 2 5 8 11 0 13 1. 13 2. 15 3. 18 1 23 1. 23 2. 26 3. 28 2 36 1. 36 2. 39 3. 42 4. 44 5. 49 6. 51 3 57 1. 57 2. 60 3. 64 4. 66 5. 70 6. 75 7. 83 8. 85 9. 88 10. 98 11. 103 12. 108 13. 112 4 115 1. 115 2.

More information

_汪_文前新ok[3.1].doc

_汪_文前新ok[3.1].doc 普 通 高 校 本 科 计 算 机 专 业 特 色 教 材 精 选 四 川 大 学 计 算 机 学 院 国 家 示 范 性 软 件 学 院 精 品 课 程 基 金 青 年 基 金 资 助 项 目 C 语 言 程 序 设 计 (C99 版 ) 陈 良 银 游 洪 跃 李 旭 伟 主 编 李 志 蜀 唐 宁 九 李 涛 主 审 清 华 大 学 出 版 社 北 京 i 内 容 简 介 本 教 材 面 向

More information

untitled

untitled 1 Outline 數 料 數 數 列 亂數 練 數 數 數 來 數 數 來 數 料 利 料 來 數 A-Z a-z _ () 不 數 0-9 數 不 數 SCHOOL School school 數 讀 school_name schoolname 易 不 C# my name 7_eleven B&Q new C# (1) public protected private params override

More information

高尔夫赌博现金棋牌,能赚现金的棋牌游戏 街机赌博游戏 真钱的棋牌游戏,30

高尔夫赌博现金棋牌,能赚现金的棋牌游戏 街机赌博游戏 真钱的棋牌游戏,30 高 尔 夫 赌 博 现 金 棋 牌, 能 赚 现 金 的 棋 牌 游 戏 街 机 赌 博 游 戏 真 钱 的 棋 牌 游 戏,30 108 http://www.3-pointdriving.com 高 尔 夫 赌 博 现 金 棋 牌, 能 赚 现 金 的 棋 牌 游 戏 街 机 赌 博 游 戏 真 钱 的 棋 牌 游 戏,30 可 以 参 加 这 斗 地 主 和 麻 将 中 的 免 费 赢 奖 品

More information

C 1

C 1 C homepage: xpzhangme 2018 5 30 C 1 C min(x, y) double C // min c # include # include double min ( double x, double y); int main ( int argc, char * argv []) { double x, y; if( argc!=

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

untitled

untitled A, 3+A printf( ABCDEF ) 3+ printf( ABCDEF ) 2.1 C++ main main main) * ( ) ( ) [ ].* ->* ()[] [][] ** *& char (f)(int); ( ) (f) (f) f (int) f int char f char f(int) (f) char (*f)(int); (*f) (int) (

More information

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File

1 Project New Project 1 2 Windows 1 3 N C test Windows uv2 KEIL uvision2 1 2 New Project Ateml AT89C AT89C51 3 KEIL Demo C C File 51 C 51 51 C C C C C C * 2003-3-30 pnzwzw@163.com C C C C KEIL uvision2 MCS51 PLM C VC++ 51 KEIL51 KEIL51 KEIL51 KEIL 2K DEMO C KEIL KEIL51 P 1 1 1 1-1 - 1 Project New Project 1 2 Windows 1 3 N C test

More information

无类继承.key

无类继承.key 无类继承 JavaScript 面向对象的根基 周爱 民 / aimingoo aiming@gmail.com https://aimingoo.github.io https://github.com/aimingoo rand = new Person("Rand McKinnon",... https://docs.oracle.com/cd/e19957-01/816-6408-10/object.htm#1193255

More information

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO Car DVD New GUI IR Flow User Manual V0.1 Jan 25, 2008 19, Innovation First Road Science Park Hsin-Chu Taiwan 300 R.O.C. Tel: 886-3-578-6005 Fax: 886-3-578-4418 Web: www.sunplus.com Important Notice SUNPLUS

More information

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10

1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 Java V1.0.1 2007 4 10 1 4 1.1 4 1.2..4 2..4 2.1..4 3.4 3.1 Java.5 3.1.1..5 3.1.2 5 3.1.3 6 4.6 4.1 6 4.2.6 5 7 5.1..8 5.1.1 8 5.1.2..8 5.1.3..8 5.1.4..9 5.2..9 6.10 6.1.10 6.2.10 6.3..10 6.4 11 7.12 7.1

More information

<4D F736F F D E4345C6BDCCA84323B1E0B3CCD2AAB5E3D6AED2BB2E646F63>

<4D F736F F D E4345C6BDCCA84323B1E0B3CCD2AAB5E3D6AED2BB2E646F63> 基于 WINCE 平台 C# 编程要点之一 本文主要介绍在基于 Windows CE 平台的英创嵌入式主板下进行 C#(Microsoft Visual Stdio.Net 2005) 应用程序开发时会常常用到的一些功能函数以及开发方法, 这些方法适用于英创采用 WinCE 平台的所有型号嵌入式主板, 包括 EM9000 EM9260 EM9160 等 本文要点包括 : 文件的删除和复制 如何获取存取设备的空间大小

More information

ebook50-11

ebook50-11 11 Wi n d o w s C A D 53 M F C 54 55 56 57 58 M F C 11.1 53 11-1 11-1 MFC M F C C D C Wi n d o w s Wi n d o w s 4 11 199 1. 1) W M _ PA I N T p W n d C W n d C D C * p D C = p W n d GetDC( ); 2) p W n

More information

untitled

untitled Visual C++ Microsoft Windows C++ MFC(Microsoft Foundation Class) Microsoft Visual C++ Visual C++ Visual C++ 6.0 Visual C++ 6.0 Visual C++ 6.0 (MSDN) Visual C++ 6.0 Visual C++ 6.0 Visual Studio 6.0 MFC

More information

Microsoft Word - 第5章.doc

Microsoft Word - 第5章.doc MFC 是微软的基础类库, 其核心是以 C++ 类的形式封装了 Windows 的 API 函数 利用 Visual C++ 6.0 可以快速开发基于 MFC 的 Windows 应用程序 通过本章的学习, 读者可以了解 MFC 基础类库, 同时掌握 Windows 应用程序设计的特点和程序设计方法 5.1 什么是 Microsoft 类库 在 1.1.3 节中已经简单地介绍了 MFC 的基本概念,Microsoft

More information

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer)

2/14 Buffer I12, /* x=2, buffer = I 1 2 */ Buffer I243, /* x=34, buffer = I 2 43 */ x=56, buffer = I243 Buffer I243I265 code_int(int x, char *buffer) 1/14 IBM Rational Test RealTime IBM, 2004 7 01 50% IBM Rational Test RealTime IBM Rational Test RealTime 1. 50% IBM Rational Test RealTime IBM Rational Test RealTime 2. IBM Rational Test RealTime Test

More information

51 C 51 isp 10 C PCB C C C C KEIL

51 C 51 isp 10   C   PCB C C C C KEIL http://wwwispdowncom 51 C " + + " 51 AT89S51 In-System-Programming ISP 10 io 244 CPLD ATMEL PIC CPLD/FPGA ARM9 ISP http://wwwispdowncom/showoneproductasp?productid=15 51 C C C C C ispdown http://wwwispdowncom

More information

How to Debug Tuxedo Server printf( Input data is: %s, inputstr); fprintf(stdout, Input data is %s, inputstr); fprintf(stderr, Input data is %s, inputstr); printf( Return data is: %s, outputstr); tpreturn(tpsuccess,

More information

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023)

( CIP) /. :, ( ) ISBN TP CIP ( 2005) : : : : * : : 174 ( A ) : : ( 023) : ( 023) ( CIP) /. :, 2005. 2 ( ) ISBN 7-5624-3339-9.......... TP311. 1 CIP ( 2005) 011794 : : : : * : : 174 ( A ) :400030 : ( 023) 65102378 65105781 : ( 023) 65103686 65105565 : http: / /www. cqup. com. cn : fxk@cqup.

More information

第12讲 Windows API

第12讲 Windows API UNIT 13 MFC E-MAIL nadinetan@163.com MFC 2 MFC 3 MFC 4 5 6 7 1 MFC 1.1 MFC MFC Microsoft Foundation Class Windows mfc*.dll Windows MFC C++ 8 1.1 MFC MFC Microsoft Foundation Class MFC Windows Windows MFC

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

Microsoft Word - PHP7Ch01.docx

Microsoft Word - PHP7Ch01.docx PHP 01 1-6 PHP PHP HTML HTML PHP CSSJavaScript PHP PHP 1-6-1 PHP HTML PHP HTML 1. Notepad++ \ch01\hello.php 01: 02: 03: 04: 05: PHP 06:

More information

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc

Microsoft Word - 把时间当作朋友(2011第3版)3.0.b.07.doc 2 5 8 11 0 1. 13 2. 15 3. 18 1 1. 22 2. 25 3. 27 2 1. 35 2. 38 3. 41 4. 43 5. 48 6. 50 3 1. 56 2. 59 3. 63 4. 65 5. 69 13 22 35 56 6. 74 7. 82 8. 84 9. 87 10. 97 11. 102 12. 107 13. 111 4 114 1. 114 2.

More information

Contact base Smart Card intercept tools ---

Contact base Smart Card intercept tools --- 虚拟卡软仿真说明 Virtual Card and Simulator manual 使用说明 Virtual card 软件仿真是指在 pc 上使用 vc 等工具, 配合 工具, 能够快速进行功能调试一种工程搭建方法 使用者通过一些简单设置, 即可将同一套代码共享在两个工程下 ( 例如一个 vc 工程, 一个 keil 工程 ), 这样代码的逻辑完全一致, 绝大多数问题都可以在 vc 环境下进行调试,

More information

D C 93 2

D C 93 2 D9223468 3C 93 2 Java Java -- Java UML Java API UML MVC Eclipse API JavadocUML Omendo PSPPersonal Software Programming [6] 56 8 2587 56% Java 1 epaper(2005 ) Java C C (function) C (reusability) eat(chess1,

More information

ebook12-1

ebook12-1 API N e t B I O S Wi n s o c k A P I Wi n s o c k 1 N e t B I O S Wi n s o c k A P I N e t B I O S O S / 2 D O S 2 3 4 Wi n d o w s Wi n d o w s 1 NetBIOS Network Basic Input/Output System, NetBIOS A P

More information

C语言的应用.PDF

C语言的应用.PDF AVR C 9 1 AVR C IAR C, *.HEX, C,,! C, > 9.1 AVR C MCU,, AVR?! IAR AVR / IAR 32 ALU 1KBytes - 8MBytes (SPM ) 16 MBytes C C *var1, *var2; *var1++ = *--var2; AVR C 9 2 LD R16,-X ST Z+,R16 Auto (local

More information

Microsoft Word - 11.doc

Microsoft Word - 11.doc 除 錯 技 巧 您 將 於 本 章 學 到 以 下 各 項 : 如 何 在 Visual C++ 2010 的 除 錯 工 具 控 制 下 執 行 程 式? 如 何 逐 步 地 執 行 程 式 的 敘 述? 如 何 監 看 或 改 變 程 式 中 的 變 數 值? 如 何 監 看 程 式 中 計 算 式 的 值? 何 謂 Call Stack? 何 謂 診 斷 器 (assertion)? 如 何

More information

nooog

nooog C : : : , C C,,, C, C,, C ( ), ( ) C,,, ;,, ; C,,, ;, ;, ;, ;,,,, ;,,, ; : 1 9, 2 3, 4, 5, 6 10 11, 7 8, 12 13,,,,, 2008 1 1 (1 ) 1.1 (1 ) 1.1.1 ( ) 1.1.2 ( ) 1.1.3 ( ) 1.1.4 ( ) 1.1.5 ( ) 1.2 ( ) 1.2.1

More information

Microsoft PowerPoint - gp3.ppt

Microsoft PowerPoint - gp3.ppt Windows 視窗程式設計 (2) 靜宜大學資訊管理學系蔡奇偉副教授 大綱 視窗的結構 Painting and Repainting GDI Device Context 視窗版的 Hello, world! 程式 取得裝置的功能資訊 版權所有 : 靜宜大學資訊管理學系蔡奇偉副教授 1 視窗的結構 標題列 (title) 工具列 (tools) 功能表 (menu) 工作區 (client) 狀態列

More information

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha

C PICC C++ C++ C C #include<pic.h> C static volatile unsigned char 0x01; static volatile unsigned char 0x02; static volatile unsigned cha CYPOK CYPOK 1 UltraEdit Project-->Install Language Tool: Language Suite----->hi-tech picc Tool Name ---->PICC Compiler Executable ---->c:hi-picinpicc.exe ( Command-line Project-->New Project-->File Name--->myc

More information

ebook

ebook 3 3 3.1 3.1.1 ( ) 90 3 1966 B e r n s t e i n P ( i ) R ( i ) W ( i P ( i P ( j ) 1) R( i) W( j)=φ 2) W( i) R( j)=φ 3) W( i) W( j)=φ 3.1.2 ( p r o c e s s ) 91 Wi n d o w s Process Control Bl o c k P C

More information

Smart Platform设计与实现技术报告.doc

Smart Platform设计与实现技术报告.doc Smart Platform Smart Platform Smart Platform Directory Service Container Blackboard Facilitator 1 Smart Platform Smart Platform Agent Container Agent Smart Platform Directory Service Directory Service(

More information

EK-STM32F

EK-STM32F STMEVKIT-STM32F10xx8 软 件 开 发 入 门 指 南 目 录 1 EWARM 安 装... 1 1.1 第 一 步 : 在 线 注 册... 1 1.2 第 二 步 : 下 载 软 件... 2 1.3 第 三 步 : 安 装 EWARM... 3 2 基 于 STMEVKIT-STM32F10xx8 的 示 例 代 码 运 行... 6 2.1 GPIO Demo... 6 2.2

More information

InstallShield InstallShield InstallShield Windows Installer ISWI ISWI InstallShield InstallShield InstallShield Windows Installer WI In

InstallShield InstallShield InstallShield Windows Installer ISWI ISWI InstallShield InstallShield InstallShield Windows Installer WI In InstallShield 1 InstallShield InstallShield InstallShield Windows Installer ISWI ISWI InstallShield InstallShield5 2000 InstallShield2000 2002 Windows Installer WI InstallShield Professional Version 6

More information

untitled

untitled 3 C++ 3.1 3.2 3.3 3.4 new delete 3.5 this 3.6 3.7 3.1 3.1 class struct union struct union C class C++ C++ 3.1 3.1 #include struct STRING { typedef char *CHARPTR; // CHARPTR s; // int strlen(

More information

Simulator By SunLingxi 2003

Simulator By SunLingxi 2003 Simulator By SunLingxi sunlingxi@sina.com 2003 windows 2000 Tornado ping ping 1. Tornado Full Simulator...3 2....3 3. ping...6 4. Tornado Simulator BSP...6 5. VxWorks simpc...7 6. simulator...7 7. simulator

More information

Java 1 Java String Date

Java 1 Java String Date JAVA SCJP Java 1 Java String Date 1Java 01 Java Java 1995 Java Java 21 Java Java 5 1-1 Java Java 1990 12 Patrick Naughton C++ C (Application Programming Interface API Library) Patrick Naughton NeXT Stealth

More information

第 1 页共 9 页 文档履历 版本号日期制 / 修订人内容描述 V 正式版本

第 1 页共 9 页 文档履历 版本号日期制 / 修订人内容描述 V 正式版本 V3s 项目 CamDroid 编译第三方程序 / V1.0 第 1 页共 9 页 文档履历 版本号日期制 / 修订人内容描述 V1.0 2014-04-23 正式版本 第 2 页共 9 页 目录 1. 交叉编译环境... 3 2. 第三方库的 Makefile 示例... 4 3. 第三方应用 Makefile 示例... 5 4. 第三方应用 CamLinux.mk 示例... 6 5. 常见错误...

More information

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 odps-sdk 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基 开放数据处理服务 ODPS SDK SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基础功能的主体接口, 搜索关键词 "odpssdk-core" 一些

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information

Microsoft Word - ch04三校.doc

Microsoft Word - ch04三校.doc 4-1 4-1-1 (Object) (State) (Behavior) ( ) ( ) ( method) ( properties) ( functions) 4-2 4-1-2 (Message) ( ) ( ) ( ) A B A ( ) ( ) ( YourCar) ( changegear) ( lowergear) 4-1-3 (Class) (Blueprint) 4-3 changegear

More information

提纲 1 2 OS Examples for 3

提纲 1 2 OS Examples for 3 第 4 章 Threads2( 线程 2) 中国科学技术大学计算机学院 October 28, 2009 提纲 1 2 OS Examples for 3 Outline 1 2 OS Examples for 3 Windows XP Threads I An Windows XP application runs as a seperate process, and each process may

More information

用户大会 论文集2.2.doc

用户大会 论文集2.2.doc MagGis MapGis GIS MagGis API DLL MapGis VC++ VB BC++ Delphi., Windows API MapGis VC++V Delphi Delphi Delphi MapGis Delphi Delphi Windows Delphi Delphi MapGis MapGis DLL API MapGis function _InitWorkArea(HINST:Integer):Integer;

More information

目次 

目次  軟 體 工 程 期 末 報 告 網 路 麻 將 91703014 資 科 三 黃 偉 嘉 91703024 資 科 三 丘 祐 瑋 91703030 資 科 三 江 致 廣 1 目 次 壹 前 言 (Preface) P.4 貳 計 畫 簡 述 及 預 期 效 益 (Project Description and Expected Results) P.4 參 系 統 開 發 需 求 (System

More information

Microsoft PowerPoint - OPVB1基本VB.ppt

Microsoft PowerPoint - OPVB1基本VB.ppt 大 綱 0.VB 能 做 什 麼? CH1 VB 基 本 認 識 1.VB 歷 史 與 版 本 2.VB 環 境 簡 介 3. 即 時 運 算 視 窗 1 0.VB 能 做 什 麼? Visual Basic =>VB=> 程 式 設 計 語 言 => 設 計 程 式 設 計 你 想 要 的 功 能 的 程 式 自 動 化 資 料 庫 計 算 模 擬 遊 戲 網 路 監 控 實 驗 輔 助 自 動

More information

TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc

TwinCAT 1. TwinCAT TwinCAT PLC PLC IEC TwinCAT TwinCAT Masc TwinCAT 2001.12.11 TwinCAT 1. TwinCAT... 3 2.... 4... 4...11 3. TwinCAT PLC... 13... 13 PLC IEC 61131-3... 14 4. TwinCAT... 17... 17 5. TwinCAT... 18... 18 6.... 19 Maschine.pro... 19... 27 7.... 31...

More information

华恒家庭网关方案

华恒家庭网关方案 LINUX V1.5 1 2 1 2 LINUX WINDOWS PC VC LINUX WINDOWS LINUX 90% GUI LINUX C 3 REDHAT 9 LINUX PC TFTP/NFS http://www.hhcn.com/chinese/embedlinux-res.html minicom NFS mount C HHARM9-EDU 1 LINUX HHARM9-EDU

More information

RunPC2_.doc

RunPC2_.doc PowerBuilder 8 (5) PowerBuilder Client/Server Jaguar Server Jaguar Server Connection Cache Thin Client Internet Connection Pooling EAServer Connection Cache Connection Cache Connection Cache Connection

More information

c_cpp

c_cpp C C++ C C++ C++ (object oriented) C C++.cpp C C++ C C++ : for (int i=0;i

More information

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF

2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF Chapter 2 WF 2.1 WF 2.2 2. XAML 2. 2 WF 1 T I P WF WF WF WF WF WF WF WF 2.1 WF WF WF WF WF WF WF WF WF WF EDI API WF Visual Studio Designer 1 2.1 WF Windows Workflow Foundation 2 WF 1 WF Domain-Specific

More information

ebook 86-15

ebook 86-15 15 G t k + d e l e t e _ e v e n t G n o m e G n o m e 15.1 GnomeDialog G t k + G n o m e D i a l o g 15.1.1 G n o m e D i a l o g g n o m e _ d i a l o g _ n e w ( ) G N O M E _ D I A L O G ( d i a l

More information

科 技 与 法 律 Science Technology and Law Vol.89, No.1, 2011 作 品 若 将 打 字 机 也 算 作 字 体 工 具, 那 么 打 字 机 不 是 美 术 作 品, 只 是 一 种 工 业 产 品 字 帖 是 美 术 作 品 么? 笔 者 认 为,

科 技 与 法 律 Science Technology and Law Vol.89, No.1, 2011 作 品 若 将 打 字 机 也 算 作 字 体 工 具, 那 么 打 字 机 不 是 美 术 作 品, 只 是 一 种 工 业 产 品 字 帖 是 美 术 作 品 么? 笔 者 认 为, 专题研究 计算机字体版权保护 张玉瑞 论计算机字体的版权保护 论计算机字体的版权保护 张玉瑞 中国社会科学院法学研究所 北京 100720 摘 要 对计算机字体产生之单字寻求版权保护 是近来知识产权法律中的热点和难点问题 从字体保护的 国际公约 外国法律及其司法实践看 字体工具属于计算机软件产品 其产生的单字没有版权 社会无关第 三人的使用不构成侵犯书法作品版权 计算机字库是字体工具 不是美术作品

More information

全国计算机技术与软件专业技术资格(水平)考试

全国计算机技术与软件专业技术资格(水平)考试 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 ) 考 试 2008 年 上 半 年 程 序 员 下 午 试 卷 ( 考 试 时 间 14:00~16:30 共 150 分 钟 ) 试 题 一 ( 共 15 分 ) 阅 读 以 下 说 明 和 流 程 图, 填 补 流 程 图 中 的 空 缺 (1)~(9), 将 解 答 填 入 答 题 纸 的 对 应 栏 内 [ 说 明

More information

游戏厅捕鱼技巧_天天酷跑游戏技巧 2048游戏技巧,游戏厅打鱼技巧_

游戏厅捕鱼技巧_天天酷跑游戏技巧 2048游戏技巧,游戏厅打鱼技巧_ 游 戏 厅 捕 鱼 技 巧 _ 天 天 酷 跑 游 戏 技 巧 巧 _ 2048 游 戏 技 巧, 游 戏 厅 打 鱼 技 152 http://www.500630.com 游 戏 厅 捕 鱼 技 巧 _ 天 天 酷 跑 游 戏 技 巧 2048 游 戏 技 巧, 游 戏 厅 打 鱼 技 巧 _ 现 在 拦 截 api 游 戏 厅 打 鱼 技 巧 的 教 程 到 处 都 是, 我 就 不 列 举

More information

EJB-Programming-3.PDF

EJB-Programming-3.PDF :, JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Value Object Design Pattern J2EE Design Patterns Value Object Value Object Factory J2EE EJB Test Client

More information

Guava学习之Resources

Guava学习之Resources Resources 提供提供操作 classpath 路径下所有资源的方法 除非另有说明, 否则类中所有方法的参数都不能为 null 虽然有些方法的参数是 URL 类型的, 但是这些方法实现通常不是以 HTTP 完成的 ; 同时这些资源也非 classpath 路径下的 下面两个函数都是根据资源的名称得到其绝对路径, 从函数里面可以看出,Resources 类中的 getresource 函数都是基于

More information

1. 软 件 核 武 器 CTreeNode 基 本 原 理 以 下 详 细 介 绍 这 一 技 术 的 基 本 原 理 -CTreeNode 这 是 一 种 数 据 结 构, 类 似 于 CObject 存 在 于 内 存 中 1. 能 够 以 树 形 的 方 式 嵌 套 存 贮 非 常 复 杂

1. 软 件 核 武 器 CTreeNode 基 本 原 理 以 下 详 细 介 绍 这 一 技 术 的 基 本 原 理 -CTreeNode 这 是 一 种 数 据 结 构, 类 似 于 CObject 存 在 于 内 存 中 1. 能 够 以 树 形 的 方 式 嵌 套 存 贮 非 常 复 杂 目 录 1. 软 件 核 武 器 CTreeNode 基 本 原 理... 2 2. 软 件 核 武 器 CTreeNode 的 重 要 意 义... 3 3. CTreeNode 1 个 月 内 能 实 现 的 应 用 场 景... 4 4. 常 见 质 疑 :... 4 1) 质 疑 1- 相 对 Socket 有 何 优 势... 4 2) 质 疑 2- 相 对 XML_Thrift,CTreeNode

More information

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice 路 ESW 聯 USB Chapter 9 Applications For Windows Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice USB I/O USB / USB 3 料 2 1 3 路 USB / 列 料 料 料 LED

More information

EJB-Programming-4-cn.doc

EJB-Programming-4-cn.doc EJB (4) : (Entity Bean Value Object ) JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Session Bean J2EE Session Façade Design Pattern Session Bean Session

More information

A Preliminary Implementation of Linux Kernel Virus and Process Hiding

A Preliminary Implementation of Linux Kernel Virus and Process Hiding 邵 俊 儒 翁 健 吉 妍 年 月 日 学 号 学 号 学 号 摘 要 结 合 课 堂 知 识 我 们 设 计 了 一 个 内 核 病 毒 该 病 毒 同 时 具 有 木 马 的 自 动 性 的 隐 蔽 性 和 蠕 虫 的 感 染 能 力 该 病 毒 获 得 权 限 后 会 自 动 将 自 身 加 入 内 核 模 块 中 劫 持 的 系 统 调 用 并 通 过 简 单 的 方 法 实 现 自 身 的

More information

<4D6963726F736F667420576F7264202D20C8EDC9E82DCFC2CEE7CCE22D3039C9CF>

<4D6963726F736F667420576F7264202D20C8EDC9E82DCFC2CEE7CCE22D3039C9CF> 全 国 计 算 机 技 术 与 软 件 专 业 技 术 资 格 ( 水 平 考 试 2009 年 上 半 年 软 件 设 计 师 下 午 试 卷 ( 考 试 时 间 14:00~16:30 共 150 分 钟 请 按 下 述 要 求 正 确 填 写 答 题 纸 1. 在 答 题 纸 的 指 定 位 置 填 写 你 所 在 的 省 自 治 区 直 辖 市 计 划 单 列 市 的 名 称 2. 在 答

More information

1. 注册自己的控件类 我把控件类名称定义为 "HyperLinkCtrl", 还要为窗口额外分配空间, 这样才能迚行更多的控制 // 注册控件类 ATOM WINAPI RegisterHyperLinkCtrl(HINSTANCE hins) WNDCLASSEX wndclass; ZeroM

1. 注册自己的控件类 我把控件类名称定义为 HyperLinkCtrl, 还要为窗口额外分配空间, 这样才能迚行更多的控制 // 注册控件类 ATOM WINAPI RegisterHyperLinkCtrl(HINSTANCE hins) WNDCLASSEX wndclass; ZeroM Win32 编程迚阶 : 打造自己的标准控件作者 :cntrump 前言 Windows 给我们提供了很多的标准控件, 基本上够用的 但是有时候我们会对标准控件丌满意, 这时候就可以考虑自己编写控件 本教程的目的是编写一个出一个简单的标准控件, 作用类似于网页上的超链接, 除了可以接受 Windows 常规消息还可以处理控件自定义的消息 程序运行的效果如下 : 鼠标点击之后就会打开在程序中所指定的链接

More information

IP505SM_manual_cn.doc

IP505SM_manual_cn.doc IP505SM 1 Introduction 1...4...4...4...5 LAN...5...5...6...6...7 LED...7...7 2...9...9...9 3...11...11...12...12...12...14...18 LAN...19 DHCP...20...21 4 PC...22...22 Windows...22 TCP/IP -...22 TCP/IP

More information

chap07.key

chap07.key #include void two(); void three(); int main() printf("i'm in main.\n"); two(); return 0; void two() printf("i'm in two.\n"); three(); void three() printf("i'm in three.\n"); void, int 标识符逗号分隔,

More information

untitled

untitled 4.1AOP AOP Aspect-oriented programming AOP 來說 AOP 令 理 Cross-cutting concerns Aspect Weave 理 Spring AOP 來 AOP 念 4.1.1 理 AOP AOP 見 例 來 例 錄 Logging 錄 便 來 例 行 留 錄 import java.util.logging.*; public class HelloSpeaker

More information

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與

第 15 章 程 式 編 写 語 言 15.1 程 式 編 写 語 言 的 角 色 程 式 編 寫 語 言 是 程 式 編 寫 員 與 電 腦 溝 通 的 界 面 語 法 是 一 組 規 則 讓 程 式 編 寫 員 將 字 詞 集 合 起 來 電 腦 是 處 理 位 元 和 字 節 的 機 器, 與 程 式 編 写 語 言 在 完 成 這 章 後, 你 將 能 夠 了 解 程 式 編 写 語 言 的 功 能 了 解 高 階 語 言 和 低 階 語 言 之 間 的 分 別 知 道 翻 譯 程 式 的 意 義 和 能 夠 把 翻 譯 程 式 分 類 為 : 匯 編 程 式 編 譯 程 式 和 解 譯 程 式 認 識 不 同 翻 譯 程 式 的 優 點 和 缺 點 程 式 是 指 揮 電 腦 的 指

More information

d2.doc

d2.doc 2 Windows Windows Windows Windows Windows Windows Windows Windows Windows Windows DOS Windows Windows Windows 1.0 Microsoft 2 Windows Windows 1.0 DOS Windows 1.0 80286 8086 Microsoft Windows 2.0 Windows

More information

VC访问VB的ActiveX.dll.doc

VC访问VB的ActiveX.dll.doc 如何从 VisualC++6.0 可执行文件访问 VisualBasicActiveXDLL 本文介绍三种方法可以从 VisualC++6.0 访 VisualBasicActiveXDLL 执行 1. 创建 VisualBasicActiveXDLL 项目 默认情况下创建 Class 1 2. 以下代码添加到 Class 1: Public Function MyVBFunction(x As Integer)

More information

引言

引言 BELL 18% 15% 50% 20% BELL 10% 2. 2.1. < 1> 4 TAB < 2> > (1) printf("%d %d %d", a, b, c); (2), "=" "+=" "+" "%" "&&" "&" "

More information

ebook129-9

ebook129-9 9 : D L L D L L D L L D L L D e l p h i D L L DLL DLL D L L D L L D L L Wi n 32 D L L D L L Wi n d o w s D L L D L L D L D L L 9.1 DLL Wi n d o w s D L L D L L K e r n e l 32. d l l U s e r 32. d l l G

More information

自动化接口

自动化接口 基 于 文 件 的 数 据 交 换 的 注 意 事 项 1 SPI 2 COMOS Automation 操 作 手 册 通 用 Excel 导 入 3 通 过 OPC 客 户 端 的 过 程 可 视 化 4 SIMIT 5 GSD 6 05/2016 V 10.2 A5E37093378-AA 法 律 资 讯 警 告 提 示 系 统 为 了 您 的 人 身 安 全 以 及 避 免 财 产 损 失,

More information

目录

目录 ALTERA_CPLD... 3 11SY_03091... 3 12SY_03091...4....5 21 5 22...8 23..10 24..12 25..13..17 3 1EPM7128SLC.......17 3 2EPM7032SLC.......18 33HT46R47......19..20 41..20 42. 43..26..27 5151DEMO I/O...27 52A/D89C51...28

More information

ebook140-8

ebook140-8 8 Microsoft VPN Windows NT 4 V P N Windows 98 Client 7 Vintage Air V P N 7 Wi n d o w s NT V P N 7 VPN ( ) 7 Novell NetWare VPN 8.1 PPTP NT4 VPN Q 154091 M i c r o s o f t Windows NT RAS [ ] Windows NT4

More information

應用3D/VR虛擬實境技術於踝關節之3D/VR模擬驗證

應用3D/VR虛擬實境技術於踝關節之3D/VR模擬驗證 3D/VR 3D/VR Apply 3D/VR Vrtual Realty Technque to Prove the 3D/VR Smulaton of Ankle 爲 堃 Vsual C++ OpenGL 3D/VR v Abstract The purpose of ths thess s to set up a mechansm of ankle for normal human walkng.

More information

摘要:

摘要: ASCII B87901041 B87901062 B87901141 BBS(Bulletin Board System) 行 ANSI BBS BBS Big5 不 來 不 便 BBS 了 行 BBS 更 了 便 來 論 BBS(Bulletin Board System) 了 不良 PTT 了 BBS 行列 BBS 欄 連 BBS 令 便 讀 BBS 了 BBS 讀 流 易 BBS 了 BBS

More information

mfc.doc

mfc.doc SDK 编程讲座 ( 一 ) 摘自 SDK 路报 no.1 ( 电子版 ) Wndows 编程两种方式 : 1.SDK 编程 : 用 C 语言直接调用 Windows API 函数. 这类 API 函数有上千个 ; 2.MFC 编程 : 用类将上述 API 封装起来, 用 C++ 来调用. 一般只需 20 多个 windows 类和另外 20 多个通用的非 windows 类就可 " 干活 " 了.

More information

bingdian001.com

bingdian001.com TSM12M TSM12 STM8L152C6, STM8L152R8 MSP430F5325 whym1987@126.com! /******************************************************************************* * : TSM12.c * : * : 2013/10/21 * : TSM12, STM8L f(sysclk)

More information

Microsoft Word - CX1000-HMI_程序开发_PLC通讯

Microsoft Word - CX1000-HMI_程序开发_PLC通讯 用 VB.Net 开发 CX1000 的 HMI 第二部分和 TwinCAT PLC 通讯 一 TwinCAT 动态库 TwinCAT.Ads.dll The TwinCAT.Ads.dll 是一个.NET 类库, 它提供和 ADS 设备通讯的类 如果 TwinCAT PLC 运行在 IPC 上, 则需要添加的类库是路径 \TwinCAT\ADS Api\.NET\v1.1.4322 下的 TwinCAT.Ads.dll

More information

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un

1 LINUX IDE Emacs gcc gdb Emacs + gcc + gdb IDE Emacs IDE C Emacs Emacs IDE ICE Integrated Computing Environment Emacs Unix Linux Emacs Emacs Emacs Un Linux C July 27, 2016 Contents 1 Linux IDE 1 2 GCC 3 2.1 hello.c hello.exe........................... 5 2.2............................... 9 2.2.1 -Wall................................ 9 2.2.2 -E..................................

More information

OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数

OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数 OOP with Java Yuanbin Wu cs@ecnu OOP with Java 通知 Project 4: 4 月 18 日晚 9 点 关于抄袭 没有分数 复习 类的复用 组合 (composition): has-a 关系 class MyType { public int i; public double d; public char c; public void set(double

More information