【问题标题】:Get data from Siebel to VB6 project从 Siebel 获取数据到 VB6 项目
【发布时间】:2015-03-26 23:34:25
【问题描述】:

我正在做从 VB6 到 VB.Net 的迁移项目(控制台应用程序),它从 Siebel 获取数据并对其进行处理。我们的开发系统没有安装 Siebel,因为它是一个昂贵的软件。我想知道有没有其他方法可以在我的应用程序代码中获取 Siebel 数据而无需安装完整的 Siebel 软件?

我看到了另一个免费的软件(Siebel Sync Client (Janus))。如果我安装这个软件会解决这个问题吗?

我的代码是

Siebel 登录

Public goSiebelApplication As SiebelDataControl
Set goSiebelApplication = CreateObject("SiebelDataControl.SiebelDataControl.1")
goSiebelApplication.Login siebelConnectString, userId, password

执行 CreateObject 行时出现以下错误

数据访问代码是

Dim oBoActivity As SiebelBusObject
Dim oBcActivity As SiebelBusComp
Dim oBoDocCategory As SiebelBusObject
Dim oBcDocCategory As SiebelBusComp
Dim oBcPolicy As SiebelBusComp

Set oBoActivity = goSiebelApplication.GetBusObject("Action")
Set oBcActivity = oBoActivity.GetBusComp("Action")

【问题讨论】:

    标签: vb.net vb6 siebel


    【解决方案1】:

    您不需要安装 Siebel。由于 Siebel 具有 COM 接口,并且可以在 .Net 中使用它(例如使用 C#),您应该将 DLL 文件添加到项目中:

    • Interop.SiebelApplicationServer.dll
    • Interop.SiebelBusObjectInterfaces.dll
    • Interop.TWsiebelLib.dll

    很可能在您的旧 VB 项目中使用了相同的东西 - 所以只需查找 dll 文件;)

    【讨论】:

      猜你喜欢
      • 2014-12-26
      • 2018-05-30
      • 2014-08-17
      • 1970-01-01
      • 2014-07-15
      • 1970-01-01
      • 2014-09-09
      • 1970-01-01
      • 2011-04-08
      相关资源
      最近更新 更多