www.pudn.com > OPC_VC++.rar > OPCSample_cpp.h
// OPCSample_cpp.h : main header file for the OPCSAMPLE_CPP application
//
#if !defined(AFX_OPCSAMPLE_CPP_H__BA928977_8E00_11D3_A1E7_004005319944__INCLUDED_)
#define AFX_OPCSAMPLE_CPP_H__BA928977_8E00_11D3_A1E7_004005319944__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
/////////////////////////////////////////////////////////////////////////////
// COPCSample_cppApp:
// See OPCSample_cpp.cpp for the implementation of this class
//
#define MY_GROUPHANDLE 1
class COPCSample_cppApp : public CWinApp
{
public:
COPCSample_cppApp();
~COPCSample_cppApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(COPCSample_cppApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(COPCSample_cppApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
IOPCServer *pcServer; // the connected server
IOPCGroupStateMgt *pcGroup; // the single group on this server
DWORD dwConnection; // connection handler for Advise sink
DWORD transactionID; // only used for asynchronous I/O
OPCHANDLE groupHandle;
IDataObject *pcIData;
CAdviseSink* pcSink;
Item* pCurrentItem;
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_OPCSAMPLE_CPP_H__BA928977_8E00_11D3_A1E7_004005319944__INCLUDED_)