If you want to upgrade a old program
You can skip this sections if you are a new dOPC Client Toolkit user. Please note, the new version 4 is NOT complete compatible with older dOPC versions. But, normally it is very easy to upgrade to the new version. You have only to do following things:
If you recompile your program you will normally have compiler errors like:
Undeclared identifier: 'TdOPCItem'
To fix this, please add dOPCDA unit in uses clauses.
uses dOPCIntf, dOPCComn, dOPC;
uses dOPCIntf, dOPCComn, dOPCDA, dOPC;
That is normally all you have to do :-)
In special cases if you has inherited your own group from TdOPCGroups class, you have to change the create constructor as follow: TmydOPCGroups = class(TdOPCGroups)
public constructor create(aOwner :TdOPCServer); override; end;
TmydOPCGroups = class(TdOPCGroups) public constructor create(aOwner :TdOPCDAServer); override; end;
If you use Protocol OPC XML DA please add dOPCX in your uses clauses of the unit where your TdOPCServer is created. Or drop TdOPCXMLServer on the forms where you have dropped TdOPCServer objects.
We deleted function "SelectServer" from class TdOPCDAServer, TdOPCAEServer and TdOPCHDAServer. The reason is that behind this methods are VCL bases dialogs. Use following functions of unit dOPCDlgServerSelect instead:
function dOPCSelectDAServerDlg(Server: TdOPCSvr): boolean; function dOPCSelectAEServerDlg(Server: TdOPCSvr): boolean; function dOPCSelectHDAServerDlg(Server: TdOPCSvr): boolean;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.