First make sure you are using version 2.4.1 see Help/About Also make sure you have 24x7 Scheduler install dir in the PATH (use short file names in the PATH). If you are not, change it and restart your computer. : I tried to run ‘A quick example: Visual Basic as client’ with 24x7 new : version after registering 24x7ole.tlb successfully. I got the '24x7 Remote : Control' reference library under VB 6.0 but I got the error as following : when CreateObject("24x7 Remote Control"): “Run – time error : ‘429’ : ActiveX component can’t create object” : The code is here: : ************************************************************************ : Dim ole_24x7_rc As Object : Dim lngRn As Long : Set ole_24x7_rc = CreateObject("24x7 Remote Control") : If ole_24x7_rc Is Nothing Then : 'Rem Handle the error : End If : If ole_24x7_rc.opensession("john_doe", "password", : "WinSock", "LocalHost", "10099", : "", False) 1 Then : ' Handle the error : MsgBox ole_24x7_rc.lasterror : Else : ' Get job list : lngRn = ole_24x7_rc.getjoblist(buffer, True) : ' Change start time for job #12 to 6:00 AM : lngRn = ole_24x7_rc.setjobproperty("12", "START_TIME", : "6:00") : ' Done. Close session : lngRn = ole_24x7_rc.closesession() : End If : ' Destroy COM object and release allocated resources : Set remote24x7 = Nothing : : ************************************************************************************** : Thanks for your help in advance
|