资源简介
开发OPC 客户端Visual C++的源代码
代码片段和文件信息
// **************************************************************************
// advisesink.cpp
//
// Description:
// Implements the CKAdviseSink class and IAdviseSink COM interface. Groups
// in OPC Servers can use the IAdviseSink interface to advise us of data
// change events.
//
// OPC 1.0 requires that only the OnDataChange member function of the
// IAdviseSink interface be implemented. None of the others (OnClose
// OnSave etc.) should ever get called.
//
// The IAdviseSink interface is used by OPC version 1.0. OPC version 2.0
// uses the IOPCDataCallback interface instead. If you know that your
// server(s) will only be using OPC version 2.0 you don‘t really need this.
//
// DISCLAIMER:
// This programming example is provided “AS IS“. As such Kepware Inc.
// makes no claims to the worthiness of the code and does not warranty
// the code to be error free. It is provided freely and can be used in
// your own projects. If you do find this code useful place a little
// marketing plug for Kepware in your code. While we would love to help
// every one who is trying to write a great OPC client application the
// uniqueness of every project and the limited number of hours in a day
// simply prevents us from doing so. If you really find yourself in a
// bind please contact Kepware‘s technical support. We will not be able
// to assist you with server related problems unless you are using KepServer
// or KepServerEx.
// **************************************************************************
#include “stdafx.h“
#include “opctestclient.h“
#include “advisesink.h“
#include “item.h“
#include “group.h“
// **************************************************************************
// CKAdviseSink ()
//
// Description:
// Constructor. Reference count is initialized to zero.
//
// Parameters:
// none
//
// Returns:
// none
// **************************************************************************
CKAdviseSink::CKAdviseSink () : m_cRef (0)
{
}
// **************************************************************************
// QueryInterface ()
//
// Description:
// This function is called to obtain a pointer to one of the COM interfaces
// objects of this class support (in this case only IAdviseSink and its base
// class IUnknown). As is standard COM practice our reference count is
// incremented upon a successful query.
//
// This is one of the 3 member functions all COM interfaces must implement.
//
// Parameters:
// REFIID riid Requested interface type: IID_IUnknown
// or IID_IAdviseSink.
// LPVOID *ppInterface Pointer to requested interface.
//
// Returns:
// STDMETHODIMP -
// S_OK - Query successful ppInterface set to requested pointer.
// E_INVALIDARG - One of the arguments was invalid.
// E_NOINTERFACE - Requested interface is not supported.
// **************************************************************************
STDM
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 23420 2002-06-12 16:55 Visual C++ OPC Client Example\advisesink.cpp
文件 1852 2002-06-12 16:55 Visual C++ OPC Client Example\advisesink.h
文件 17809 2002-06-12 16:55 Visual C++ OPC Client Example\datasink20.cpp
文件 3455 2002-06-12 16:55 Visual C++ OPC Client Example\datasink20.h
文件 36339 2002-06-12 16:55 Visual C++ OPC Client Example\document.cpp
文件 4604 2002-06-12 16:55 Visual C++ OPC Client Example\document.h
文件 14218 2002-06-12 16:55 Visual C++ OPC Client Example\editfilters.cpp
文件 3956 2002-06-12 16:55 Visual C++ OPC Client Example\editfilters.h
文件 25098 2002-06-12 16:55 Visual C++ OPC Client Example\eventview.cpp
文件 4091 2002-06-12 16:55 Visual C++ OPC Client Example\eventview.h
文件 2731 2002-06-12 16:55 Visual C++ OPC Client Example\fixedsharedfile.h
文件 8305 2002-06-12 16:55 Visual C++ OPC Client Example\globals.cpp
文件 4681 2002-06-12 16:55 Visual C++ OPC Client Example\globals.h
文件 119956 2002-06-12 16:55 Visual C++ OPC Client Example\group.cpp
文件 7772 2002-06-12 16:55 Visual C++ OPC Client Example\group.h
文件 24208 2002-06-12 16:55 Visual C++ OPC Client Example\grouppropertysheet.cpp
文件 4655 2002-06-12 16:55 Visual C++ OPC Client Example\grouppropertysheet.h
文件 53462 2002-06-12 16:55 Visual C++ OPC Client Example\groupview.cpp
文件 3465 2002-06-12 16:55 Visual C++ OPC Client Example\groupview.h
文件 4429 2002-06-12 16:55 Visual C++ OPC Client Example\imagebutton.cpp
文件 1699 2002-06-12 16:55 Visual C++ OPC Client Example\imagebutton.h
文件 25014 2002-06-12 16:55 Visual C++ OPC Client Example\item.cpp
文件 4302 2002-06-12 16:55 Visual C++ OPC Client Example\item.h
文件 65972 2002-06-12 16:55 Visual C++ OPC Client Example\itemadddlg.cpp
文件 4810 2002-06-12 16:55 Visual C++ OPC Client Example\itemadddlg.h
文件 32624 2002-06-12 16:55 Visual C++ OPC Client Example\itempropertiesdlg.cpp
文件 2901 2002-06-12 16:55 Visual C++ OPC Client Example\itempropertiesdlg.h
文件 81825 2002-06-12 16:55 Visual C++ OPC Client Example\itemview.cpp
文件 4663 2002-06-12 16:55 Visual C++ OPC Client Example\itemview.h
文件 16104 2002-06-12 16:55 Visual C++ OPC Client Example\itemwritedlg.cpp
............此处省略72个文件信息
相关资源
- 贪吃蛇 小游戏 代码C++编写,面向对象
- c++分数评价
- vc++ 运用MFC实现基于AfxMessageBox的 自定
- VC++中文繁体、简体BIG-GBK编码转换程序
- 学生考勤管理系统源代码
- C++实现Apriori算法
- c++实现的读写csv文件
- C++ Prime Plus中文版第六版
- 钱能c++程序设计教程修订版答案
- 用C\\C++实现操作系统经典同步问题,
- Visual C++ 2013 从入门到精通源代码
- C++商店购物系统课程设计论文
- C++版本的百度搜索爬虫获取搜索结果
- 利用opengl 组件的基础上使用VC++编写的
- CC++ To Delphi转换器(源码)
- C++程序设计朱金付版课后习题答案
- C++上机实验答案 朱金付版
- 动态规划解TSP(旅行商)问题C++源码
- C++五子棋程序代码基础实现
- VC++编写DLL导出函数及其调用方法
- C++电梯调度系统源代码
- 理财管理系统 c++代码
- 基于QT的用C++编写的中国象棋软件源代
- 格子玻尔兹曼方法计算顶盖驱动流源
- Visual C++数字图像处理技术详解 pdf+源
- C++语言版本的DES加解密应用程序源码
- C++ 网络聊天室设计报告及主要源程序
- 空间后方交会C++
- 层次聚类算法C++
- BOOTH算法C++实现
评论
共有 条评论