|
Pages: [1]
|
 |
|
Author
|
Topic: REBOL & OLE Automation (Read 2891 times)
|
|
Thør
|
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
|
|
|
|
|
|
|
Thør
|
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
|
|
|
|
|
|
|
Thør
|
Thanks for the information. Will study it a bit later.
Cheers!! :mellow:
|
|
|
|
|
Logged
|
|
|
|
|
|
|
Thør
|
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: ** 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
|
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
|
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
|
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.  Anton.
|
|
|
|
|
Logged
|
|
|
|
|
Philippe
|
(for Anton) Hello Anton, When I use the COMLib library, REBOL returns the message : 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
|
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
|
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.htmland 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
|
Anton,
OK, thanks. I will test the release and keep you informed.
rgds, Philippe
|
|
|
|
|
Logged
|
===Philippe
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2293 Posts in 593 Topics by 3749 Members
Latest Member: irotlydor
|