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 thentest = ObjectOpen ("CoDTAServCtrlRemote.Create as IDTAServCtrlRemote") test.Resetbut 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.