SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
24x7 COM

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
24x7 COM
Author Message
New247



Joined: 20 Nov 2000
Posts: 3

Post 24x7 COM Reply with quote

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

Mon Nov 20, 2000 2:28 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Re: 24x7 COM Reply with quote

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

Mon Nov 20, 2000 2:35 pm View user's profile Send private message
New247



Joined: 20 Nov 2000
Posts: 3

Post Re: 24x7 COM Reply with quote

: 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 am using a scheduler 2.4.1 version and the 24x7.exe/24x7ole.tlb are in a dir of “24x7 Scheduler 2.0”. Is this a problem? If so, how to change it? I am not sure where is the PATH you mentioned as your message?

Thanks,


Tue Nov 21, 2000 11:49 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Re: 24x7 COM Reply with quote

The PATH is the name of the environment variable.
If you are using Win95/98/Me you set PATH in the c:\autoexec.bat file

If you are on WinNT/2000 you set it in the Control Panel / System applet (Environment tab page)

In any case you alredy have some value assigned to the PATH. You should append at the end of PATH value a string like ";C:\Program Files\24x7 Scheduler 2.0".

: I am using a scheduler 2.4.1 version and the 24x7.exe/24x7ole.tlb are in a
: dir of “24x7 Scheduler 2.0”. Is this a problem? If so, how to change it? I
: am not sure where is the PATH you mentioned as your message?

: Thanks,

Tue Nov 21, 2000 12:01 pm View user's profile Send private message
New247



Joined: 20 Nov 2000
Posts: 3

Post Re: 24x7 COM Reply with quote

: The PATH is the name of the environment variable.
: If you are using Win95/98/Me you set PATH in the c:\autoexec.bat file

: If you are on WinNT/2000 you set it in the Control Panel / System applet
: (Environment tab page)

: In any case you alredy have some value assigned to the PATH. You should
: append at the end of PATH value a string like ";C:\Program Files\24x7
: Scheduler 2.0".

Thanks! It works with the COM and it is in progress. I got the message: “Invalid serial number! You must register this copy of the 24x7 Remote Control COM component before you can use it.” I think that this is reasonable since I use a trial version. Is this true?

I am wondering if I can get 24x7 Remote Control methods and properties from Object Browser with VB6.0 editor. What is the key word for this COM? 24x7 or 24x7OLE?

BTW, does the COM interface allow building Web based XML interfaces?

Thanks for your support again,


Tue Nov 21, 2000 2:29 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7849

Post Re: 24x7 COM Reply with quote

Please see my answers below

: Thanks! It works with the COM and it is in progress. I got the message:
: “Invalid serial number! You must register this copy of the 24x7 Remote
: Control COM component before you can use it.” I think that this is
: reasonable since I use a trial version. Is this true?

This is caused by the fact that both COM and 24x7 itself cannot share the same serial number. In the trial version you can bypass that if you move 24x7 Scheduler to another computer.

: I am wondering if I can get 24x7 Remote Control methods and properties from
: Object Browser with VB6.0 editor. What is the key word for this COM? 24x7
: or 24x7OLE?

Yes you can see them in the Object Browser if you expand the "hidden" section

: BTW, does the COM interface allow building Web based XML interfaces?

Yes, by the way this is the main purpose of the COM interface. A Java interface for Netscape and other non-Microsoft web servers going to beta next week.

: Thanks for your support again,

Tue Nov 21, 2000 3:02 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.