// $Header: $ // Copyright (c) CODE Consulting and Development, s.r.o., Plzen. All rights reserved. // This files imports all QuickOPC libraries (and system libraries they require), creating Compiler COM Support wrappers. // It also contains additional definitions for creating event sinks. #pragma once // #import system libraries // mscorlib #pragma warning(push) #pragma warning(disable:4278) // 'ReportEvent': identifier in type library 'BED7F4EA-1A96-11D2-8F08-00A0C9A6186D' is already a macro; use the 'rename' qualifier #if _MSC_VER >= 1300 #define IMPORT_MSCORLIB "libid:BED7F4EA-1A96-11D2-8F08-00A0C9A6186D" #else #define IMPORT_MSCORLIB "mscorlib.tlb" #endif #import IMPORT_MSCORLIB #pragma warning(pop) using namespace mscorlib; // System.Drawing #if _MSC_VER >= 1300 #define IMPORT_SYSTEM_DRAWING "libid:D37E2A3E-8545-3A39-9F4F-31827C9124AB" #else #define IMPORT_SYSTEM_DRAWING "System.Drawing.tlb" #endif #import IMPORT_SYSTEM_DRAWING using namespace System_Drawing; // System.Windows.Forms #pragma warning(push) #pragma warning(disable:4192) // automatically excluding 'IDataObject' while importing type library 'System.Windows.Forms.tlb' #if _MSC_VER >= 1300 #define IMPORT_SYSTEM_WINDOWS_FORMS "libid:215D64D2-031C-33C7-96E3-61794CD1EE61" #else #define IMPORT_SYSTEM_WINDOWS_FORMS "System.Windows.Forms.tlb" #endif #import IMPORT_SYSTEM_WINDOWS_FORMS #pragma warning(pop) using namespace System_Windows_Forms; // #import QuickOPC libraries // OpcLabs.BaseLib #if _MSC_VER >= 1300 #define IMPORT_OPCLABS_BASELIB "libid:ecf2e77d-3a90-4fb8-b0e2-f529f0cae9c9" #else #define IMPORT_OPCLABS_BASELIB "OpcLabs.BaseLib.tlb" #endif #import IMPORT_OPCLABS_BASELIB \ rename("value", "Value") using namespace OpcLabs_BaseLib; // OpcLabs.BaseLibForms #if _MSC_VER >= 1300 #define IMPORT_OPCLABS_BASELIBFORMS "libid:A0D7CA1E-7D8C-4D31-8ECB-84929E77E331" #else #define IMPORT_OPCLABS_BASELIBFORMS "OpcLabs.BaseLibForms.tlb" #endif #import IMPORT_OPCLABS_BASELIBFORMS using namespace OpcLabs_BaseLibForms; // OpcLabs.EasyOpcClassic #if _MSC_VER >= 1300 #define IMPORT_OPCLABS_EASYOPCCLASSIC "libid:1F165598-2F77-41C8-A9F9-EAF00C943F9F" #else #define IMPORT_OPCLABS_EASYOPCCLASSIC "OpcLabs.EasyOpcClassic.tlb" #endif #import IMPORT_OPCLABS_EASYOPCCLASSIC \ rename("itemId", "ItemId") \ rename("machineName", "MachineName") \ rename("requestedUpdateRate", "RequestedUpdateRate") \ rename("serverClass", "ServerClass") using namespace OpcLabs_EasyOpcClassic; // OpcLabs.EasyOpcUA #if _MSC_VER >= 1300 #define IMPORT_OPCLABS_EASYOPCUA "libid:E15CAAE0-617E-49C6-BB42-B521F9DF3983" #else #define IMPORT_OPCLABS_EASYOPCUA "OpcLabs.EasyOpcUA.tlb" #endif #import IMPORT_OPCLABS_EASYOPCUA \ rename("attributeData", "AttributeData") \ rename("browsePath", "BrowsePath") \ rename("endpointDescriptor", "EndpointDescriptor") \ rename("expandedText", "ExpandedText") \ rename("inputArguments", "InputArguments") \ rename("inputTypeCodes", "InputTypeCodes") \ rename("nodeDescriptor", "NodeDescriptor") \ rename("nodeId", "NodeId") \ rename("value", "Value") using namespace OpcLabs_EasyOpcUA; // OpcLabs.EasyOpcForms #if _MSC_VER >= 1300 #define IMPORT_OPCLABS_EASYOPCFORMS "libid:2C654FA0-6CD6-496D-A64E-CE2D2925F388" #else #define IMPORT_OPCLABS_EASYOPCFORMS "OpcLabs.EasyOpcForms.tlb" #endif #import IMPORT_OPCLABS_EASYOPCFORMS using namespace OpcLabs_EasyOpcForms; // DISPID-s #define DISPID_EASYAECLIENTCONFIGURATIONEVENTS_LOGENTRY 1 #define DISPID_EASYAECLIENTEVENTS_NOTIFICATION 2001 #define DISPID_EASYDACLIENTCONFIGURATIONEVENTS_LOGENTRY 1 #define DISPID_EASYDACLIENTEVENTS_ITEMCHANGED 1002 #define DISPID_EASYUACLIENTCONFIGURATIONEVENTS_LOGENTRY 1 #define DISPID_EASYUACLIENTEVENTS_DATACHANGENOTIFICATION 1002 #define DISPID_EASYUACLIENTEVENTS_EVENTNOTIFICATION 1003 #define DISPID_EASYUACLIENTEVENTS_SERVERCONDITIONCHANGED 1101