//////////////////////////////////////////////////////////////////////// // project: SimpleOPCClient // version: 2 // // subject: this is a simple OPC Client that read the value of an item // from an OPC server. // // file: SimpleOPCClient.h // // writer: Philippe GRAS - CERN / EP // #ifndef SIMPLE_OPC_CLIENT_H #define SIMPLE_OPC_CLIENT_H IOPCServer* InstantiateServer(wchar_t ServerName[]); void AddTheGroup(IOPCServer* pIOPCServer, IOPCItemMgt* &pIOPCItemMgt, OPCHANDLE& hServerGroup); void AddTheItem(IOPCItemMgt* pIOPCItemMgt, OPCHANDLE& hServerItem); void ReadItem(IUnknown* pGroupIUnknown, OPCHANDLE hServerItem, VARIANT& varValue); void RemoveItem(IOPCItemMgt* pIOPCItemMgt, OPCHANDLE hServerItem); void RemoveGroup (IOPCServer* pIOPCServer, OPCHANDLE hServerGroup); #endif // SIMPLE_OPC_CLIENT_H not defined