VB6 代码:
Dim oApplication As SiebelHTMLApplication
Dim oBS As SiebelService
Dim oPSIn As SiebelPropertySet
Dim oPSOut As SiebelPropertySet
Dim sActivityId As String
Set oApplication = CreateObject("Siebel.Desktop_Integration_Application.1")
If oApplication.IsReady Then
Set oBS = oApplication.GetService("Workflow Process Manager")
C#代码:-
SiebelHTMLApplication sApp = new SiebelHTMLApplication();
SiebelService sService = new SiebelService();
SiebelPropertySet sPsIn = new SiebelPropertySet();
SiebelPropertySet sPsOut = new SiebelPropertySet();
然后我尝试将第 6 行的 VB 代码转换为 c#:-
object instance = Activator.CreateInstance(Type.GetTypeFromProgID("Siebel.Desktop_Integration_Application.1"));
但我无法将实例对象转换为 SiebelHTMLApplication,例如:-
sApp = (SiebelHTMLApplication)instance;
任何人都可以建议我如何设置它吗?