Thanks
Bryan Webb
If you have an API reference, or examples in VB, they're easily translatable
into Ruby.
The API reference is available here:
http://developer.novell.com/ndk/gwobjapi.htm
And a comparison of some sample code is below:
VB:
Dim objGroupWise As Object
objGroupWise = CreateObject("NovellGroupWareSession")
Dim objAccount As AccountSet
objAccount = objGroupWise.Login(txtUserID, txtCommandLine)
Dim strPathToHost As String
strPathToHost = objAccount.PathToHost
Dim objABook As Object
For Each objABook In objAccount.AddressBooks
MsgBox objABook.Name
Next
Ruby:
groupwise = WIN32OLE.new("NovellGroupWareSession")
account = groupwise.Login(user_id, command_line)
path_to_host = account.PathToHost
account.AddressBooks.each do |address_book|
puts address_book.name
end
Cheers,
Dave