求大神指点,为何我CS版的OPC程序没有问题,但是移植到BS版上面,就读取不到数据,我加载的dll为;OPCAutomation这个
public void dataReturn()
{
try
{
itmHandleClient = count;
KepItem = KepItems.AddItem(lst_dataShow.SelectedItem.ToString(), itmHandleClient);
itmHandleServer = KepItem.ServerHandle;
count++;
DataRow dr = dt.NewRow();
dr["标签"] = lst_dataShow.SelectedItem.ToString();
dr["测量值"] = "";
dr["质量"] = "";
dr["时间戳"] = "";
dt.Rows.Add(dr);
}
catch (Exception err)
{
//MessageBox.Show("此项为系统保留项:" + err.Message, "提示信息");
}
}