WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Errors

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

1129 Error and Object Open Interface in Type Library

Keywords: 	   1129 Error and Object Open Interface in Type Library

Question:

We can open the following interface in a registered type libray in Delphi as follows, can this be done in WinBatch using ObjectOpen?

DTAServCtrl.tlb. Delphi declares as DTAServCtrl_TLB

button event handler as follows:

procedure TForm1.ResetClick(Sender: TObject);
var
test : IDTAServCtrlRemote; {interface in type library}
begin
{Created instance of class CoDTAServCtrlRemote in type library and used instances IDTAServCtrlRemote interface}
test := CoDTAServCtrlRemote.Create as IDTAServCtrlRemote; 
{Called interface reset method}
test.Reset;
end;
We have tried registering using windows Reglib and then
test = ObjectOpen ("CoDTAServCtrlRemote.Create as IDTAServCtrlRemote")
test.Reset
but this returns 1129 Oleinitiate: initiate failed on line:
test = ObjectOpen ("CoDTAServCtrlRemote.Create as IDTAServCtrlRemote") 

Answer:

Maybe try searching the registry for the appropriate application object. Search under HKEY_Classes_Root for DTAServCtrl....IF its found you might attempt an object open on that object. Otherwise you will have to locate some documentation for how this can be accessed by third party scripting tools.

Especialy look for the ProgID entry as that is what is generally used with ObjectOpen(), otherwise is only the CLSID is given, you may have to approach it via HTML or ASP pages/code.


Article ID:   W15611
File Created: 2003:05:13:11:29:12
Last Updated: 2003:05:13:11:29:12