从Siebel获取数据到VB6项目

时间:2015-01-28 06:25:16

标签: vb.net vb6 siebel

我正在从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行时,我遇到错误

enter image description here

数据访问代码

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")

1 个答案:

答案 0 :(得分:1)

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

  • Interop.SiebelApplicationServer.dll
  • Interop.SiebelBusObjectInterfaces.dll
  • Interop.TWSiebelLib.dll

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