r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Windows/COM Support]

Graham
4-Dec-2005
[138x2]
I don't think Ben is working on comlib at present
What he said he was going to do was to find a way to provide comlib 
support for those without pro.
Rebolek
4-Dec-2005
[140]
I think /PRO is bad idea...but I said that many times :)
Anton
4-Dec-2005
[141]
Ben just emailed me, so good news.
Graham
4-Dec-2005
[142]
Anton, can your version do all the demos that Ben posted ?
Anton
4-Dec-2005
[143]
All except the WORD open_save.r demo. But I don't think Ben's could 
do that on my system either.
Graham
4-Dec-2005
[144x2]
what does that one do ?
I'm pretty sure most of the demos worked as advertised ...
Anton
4-Dec-2005
[146]
Don't worry, Ben and I are going to work together.
Benjamin
8-Dec-2005
[147]
Hello im back,  im sending sources and demos to Anton. he's going 
to post sources and documentations on his site.
Anton
8-Dec-2005
[148]
Excellent.
Benjamin
8-Dec-2005
[149x2]
check you'r mailbox sourcer shold be there by now
i mean sources, also i whant to thank you all for giving you'r attention 
in this project.
Anton
9-Dec-2005
[151x2]
Got it, Ben, very good.

Is there anyone who can donate webspace (say 10MB) and set up FTP 
access for Ben and I ?
Hmm, maybe Sunanda will give us a directory on rebol.org ? eg. www.rebol.org/COMLib/ 
 ?  :)
Brett
13-Dec-2005
[153x2]
Just used comlib to make Photoshop produce my xmas cards controlled 
by Rebol. Worked pretty well too. I did have a couple of problems, 
and worked around them but I'm don't know if it was PS or comlib. 
Assuming PS at the moment.
Anton, re webspace, send me an email - what do you need to do? private 
ftp space or public web and for how long?
Anton
13-Dec-2005
[155x2]
Brett, I've noticed many of the code examples have small delays in 
between each command (eg. wait 0.1) which supposedly makes it more 
reliable. Don't know if that can help you.
Thanks for your offer, but Yeksoon has kindly set up a temporary 
website for us, and will set up a more permanent one after some server 
upgrading.
Brett
14-Dec-2005
[157x4]
Just on those issues I mentioned maybe someone here knows:


Issue 1 - CreateObject won't start Photoshop but does work with Microsoft 
products like Access, Excel, Word...

>> obj_application: createObject "Photoshop.Application"
--------------------------------------------------
ERROR:
--------------------------------------------------
Member:   Photoshop.Application
Function:     CreateObject
Error In:     CreateObjectEx
Error:    %1 is not a valid Win32 application.
Code:     800700c1
Source:   Application
CODE: -2147024703
--------------------------------------------------


If I start PS by hand or use Call from REBOL then there is no problem. 
It is starting the process which is the issue.
Issue 2 - Photoshop method PrintOut only works the first time, subsequent 
calls are silently ignored.


I had a loop so my workaround was to Quit photoshop programmatically, 
then restart it with Call - bit of a sledgehammer but I generated 
my cards :)
Not a big issue for me now, but would be good to solve these for 
next time.
P.s both of these I tried at console and I think I did try a wait 
at the time.
Anton
14-Dec-2005
[161]
Yes, CreateObject assumes the application is already running. In 
the case of MS office apps, they are probably already running in 
the background somehow, or the interface supports those apps.
Brett
14-Dec-2005
[162x2]
Ok thanks for that. Is there something I can use to start the application 
apart from REBOL's Call command?
On issue 2, I've done some more testing this time with VB script 
and same result - just one print.  However, trying a different printer 
- multiple prints work using VB script and REBOL/comlib. So it may 
be the printer driver that is causing me problems.
Anton
14-Dec-2005
[164]
I don't know, I haven't discovered this yet. I will of course put 
it into a demo when / if  I do discover a way to start the app.
Graham
12-Jan-2006
[165]
Any updates on the comlib ?
Anton
12-Jan-2006
[166x2]
I forked and did a lot of cleaning and rebolifying, but I think Benjamin 
must be real busy or on holiday, because I've been waiting for his 
email for a while. Also, the more I worked on it, the more I wanted 
to check the basis of code. Maybe there is better library than disphelper 
to base on ? I don't know because I didn't check yet. Anyway, I will 
most l likely continue with my fork as is.
Not going to do anything on that for a few days, I think.
Graham
12-Jan-2006
[168]
Was there a solution to Brett's problem ?
Anton
12-Jan-2006
[169]
no news there.
Gregg
12-Jan-2006
[170]
Not COM related, but I had similar problems with programmtic control 
of Acrobat.
Thør
4-Apr-2006
[171]
.
[unknown: 5]
4-Apr-2006
[172]
Yes Brett - CreateProcess
Anton
27-Jun-2006
[173]
First release of  COMLib-anton    (Benjamin Maggi's COMLib, reengineered)
http://home.wilddsl.net.au/anton/rebol/os/windows/COMLib/
Graham
27-Jun-2006
[174]
What changes ?
Anton
28-Jun-2006
[175]
To see some changes, click on Browse Files, then docs/convert-ben-to-anton.txt
Graham
28-Jun-2006
[176x2]
Anton, how stable is your fork?
is it more stable than Benjamin's ? Although I can't say I've had 
any problems with his.
Anton
28-Jun-2006
[178x3]
I am confident in it. That is why I have published. I worked really 
hard for the last couple of weeks. I feel the new API is not likely 
to change very much from here.
I have removed the use of callbacks, so there is no chance for indeterminate 
behaviour due to the asynchronous operation of callbacks. Exceptions 
are now thrown as rebol errors, so you can use standard rebol error 
checking.
I have scrutinized the API and cleaned it up, removing seemingly 
arbitrary divergences from DispHelper function names.
Graham
28-Jun-2006
[181]
Ok.  I'll have to test it in the weekend.
Anton
28-Jun-2006
[182]
Also, I am here to support it fully.
Henrik
28-Jun-2006
[183]
COMlib requires a /Pro license, right?
Anton
28-Jun-2006
[184]
Yes, to access external library.
Henrik
28-Jun-2006
[185x2]
ok
(maybe it would be worth mentioning to avoid too much excitement?) 
:-)
Pekr
28-Jun-2006
[187]
why? will not RT release library interface as any other normal language, 
for free? ;-)