Exemplo n.º 1
0
        public void registerOPCServer()
        {
            string exepath;
            exepath = System.Windows.Forms.Application.StartupPath + "\\OPCServerProject.exe";
            deactive();
            OPClib.WriteNotificationDelegate WriteCallback = new OPClib.WriteNotificationDelegate(MyWriteCallback);
            OPClib.UpdateRegistry("{4FEFF1A0-5B75-4EF3-BC6D-37145069E552}",
                                        "My OPC Server",
                                        "My OPC Server",
                                        exepath);
            OPClib.SetVendorInfo("OPCServer.Com");
            OPClib.InitWTOPCsvr("{4FEFF1A0-5B75-4EF3-BC6D-37145069E552}", 1000);

            OPClib.EnableWriteNotification(WriteCallback, true);
        }
Exemplo n.º 2
0
        public void registerOPCServer()
        {
            string exepath;

            exepath = System.Windows.Forms.Application.StartupPath + "\\OPCServerProject.exe";
            deactive();
            OPClib.WriteNotificationDelegate WriteCallback = new OPClib.WriteNotificationDelegate(MyWriteCallback);
            OPClib.UpdateRegistry("{4FEFF1A0-5B75-4EF3-BC6D-37145069E552}",
                                  "My OPC Server",
                                  "My OPC Server",
                                  exepath);
            OPClib.SetVendorInfo("OPCServer.Com");
            OPClib.InitWTOPCsvr("{4FEFF1A0-5B75-4EF3-BC6D-37145069E552}", 1000);

            OPClib.EnableWriteNotification(WriteCallback, true);
        }