Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: REBOL & OLE Automation
Pages: [1] Print
Author Topic: REBOL & OLE Automation  (Read 2892 times)
Thør
Newbie
*
Offline Offline

Posts: 46


View Profile
REBOL & OLE Automation
« on: June 04, 2006, 04:21:58 AM »

Hi!

I'd like to know if REBOL is capable of using OLE automation. A link or tutorial/sample script on how to do it is highly appreciated.

Thanks.
Logged
PeterWood
Newbie
*
Offline Offline

Posts: 34


View Profile
Re: REBOL & OLE Automation
« Reply #1 on: June 06, 2006, 05:39:38 AM »

Thør

Not directly according to the only thread on the Rebol ML that mentions OLE - http://www.rebol.org/cgi-bin/cgiwrap/rebol/ml-display-thread.r?m=rmlSHDC

Peter
Logged
Thør
Newbie
*
Offline Offline

Posts: 46


View Profile
Re: REBOL & OLE Automation
« Reply #2 on: June 06, 2006, 12:02:05 PM »

Peter

Thanks. You have just also reminded me that the first thing to do immediately before or after posting a question here is to check the ML.  ^_^

Logged
Philippe
Newbie
*
Offline Offline

Posts: 34


View Profile WWW
Re: REBOL & OLE Automation
« Reply #3 on: June 07, 2006, 04:19:06 AM »

You could also see the great work supplied by Benjamin Maggi.

http://www.geocities.com/benjaminmaggi/data/

COMLib.zip and others archives with docs

Works fine. Need SDK or Pro.

Logged

===Philippe
Thør
Newbie
*
Offline Offline

Posts: 46


View Profile
Re: REBOL & OLE Automation
« Reply #4 on: June 09, 2006, 11:33:10 AM »

Thanks for the information. Will study it a bit later. 

Cheers!! :mellow:
Logged
Anton
Jr. Member
**
Offline Offline

Posts: 66

Rebol veteran


View Profile WWW
Re: REBOL & OLE Automation
« Reply #5 on: August 21, 2006, 12:40:31 AM »

I've extensively reworked Benjamin's COMLib, cleaning and enhancing it. Here's the website:

http://anton.wildit.net.au/rebol/os/windows/COMLib/index.html
Logged
Thør
Newbie
*
Offline Offline

Posts: 46


View Profile
Re: REBOL & OLE Automation
« Reply #6 on: November 09, 2006, 02:24:16 AM »

Hi Anton.

My interest in REBOL and COM have been revived recently, and I tried running the test-COMlib.r script included web page in the link you provided. Unfortunately, I received this error:

Code:
** Script Error: foreach expected data argument of type: series
** Where: cleanup
** Near: foreach obj objects [routines/releaseObject obj]

I'm currently running:

version        1.3.2.3.1
build           5-Dec-2005/18:22:54-8:00
product       View
core            2.6.3

Thanks.
Logged
Anton
Jr. Member
**
Offline Offline

Posts: 66

Rebol veteran


View Profile WWW
Re: REBOL & OLE Automation
« Reply #7 on: November 09, 2006, 08:22:46 PM »

Hi Thør,

I think you get this error because you don't have the Rebol SDK or View/Pro license ?
COMLib uses Rebol's External Library Interface and as such needs a license.
If so, you are not the first to be confused. I'll try to make the website clearer to
avoid future disappointments.

Before your script error, did it print out a large error object beginning with this?:

make object! [
    code: 328
    type: 'script
    id: 'feature-na        ; <--- that's a "feature not available" error.
   .... etc

Sorry for any disappointment.
Regards,

Anton.
Logged
Thør
Newbie
*
Offline Offline

Posts: 46


View Profile
Re: REBOL & OLE Automation
« Reply #8 on: November 10, 2006, 01:55:14 AM »

Anton,

Thanks for the tip. I have a license for Command, and after a little investigation,  I found out that the error is caused by a missing com2rebol.dll file. Looks like I forgot to extract it from the zip file to the folder that test-COMLib.r is in.

I'm going to play around with it this weekend.

Cheers!
Logged
Anton
Jr. Member
**
Offline Offline

Posts: 66

Rebol veteran


View Profile WWW
Re: REBOL & OLE Automation
« Reply #9 on: November 10, 2006, 10:09:05 AM »

Thør, thanks for your error reports. I've added the need for better error messages for these cases to the to-do list. Glad it was something relatively simple. Smiley

Anton.
Logged
Philippe
Newbie
*
Offline Offline

Posts: 34


View Profile WWW
Re: REBOL & OLE Automation
« Reply #10 on: February 20, 2007, 03:45:28 AM »

(for Anton)

Hello Anton,

When I use the COMLib library, REBOL returns the message :
Quote
make object! [
    code: 300
    type: 'script
    id: 'no-value
    arg1: 'case
    arg2: none
    arg3: none
    near: [case [
            find all-routine-names dependency [if not find my-routines dependency [append my-routines dependenc
y]]
            find all-function-names dependency [if not find my-functions dependency [append my-functions depend
ency]]
            "default" [
                throw make error! reform ["COMLib: The function" name "depends on" dependency "but" dependency
"is not available."]
            ]
        ]]
    where: 'initialize
]

I use REBOL/Command View 1.2.48.3.1 on XP or (same error) REBOL/Command View 1.2.10.3.1, with simple-start-comlib.r script.

Could you help me  ?
Thx,
===Philippe
Logged

===Philippe
Anton
Jr. Member
**
Offline Offline

Posts: 66

Rebol veteran


View Profile WWW
Re: REBOL & OLE Automation
« Reply #11 on: March 08, 2007, 07:50:21 PM »

Ah.. it looks like those older rebol versions don't have the CASE function yet. Forgive me for assuming new rebol versions.
It appears that View 1.2.54.3.1 was the first version with CASE.
Options:
- require a newer rebol version (pop an alert when too old versions are used)
- implement CASE as a mezzanine (it might work, but there might be other backwards compatibility issues, some other functions might be missing)
- rewrite the code not using CASE
Logged
Anton
Jr. Member
**
Offline Offline

Posts: 66

Rebol veteran


View Profile WWW
Re: REBOL & OLE Automation
« Reply #12 on: March 08, 2007, 11:04:48 PM »

Philippe,

Ok, I have made some backwards compatibility fixes.
Now it should work back to View >= 1.2.30
(if all is well - only lightly tested with %test-comlib.r.)

Get %COMLib.r

http://anton.wildit.net.au/rebol/os/windows/COMLib/files.html

and replace your old one in your COMLib folder.

Let me know how it goes, and sorry, I didn't see your report until today.
Logged
Philippe
Newbie
*
Offline Offline

Posts: 34


View Profile WWW
Re: REBOL & OLE Automation
« Reply #13 on: April 06, 2007, 11:02:15 AM »

Anton,

OK, thanks.
I will test the release and keep you informed.

rgds,
Philippe
Logged

===Philippe
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: REBOL & OLE Automation
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 01:21:10 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2293 Posts in 593 Topics by 3749 Members
Latest Member: irotlydor

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc