March 09, 2005
"J C Calvarese" <jcc7@cox.net> wrote in message news:d0lm0k$tit$1@digitaldaemon.com...
> Walter wrote:
> > "jicman" <jicman_member@pathlink.com> wrote in message news:d03kek$1tra$1@digitaldaemon.com...
> >
> >>How well does DMDScript plays with Windows COM objects?
> >
> >
> > The C++ one does, but the D version does not.
>
> The C++ might play, but I wouldn't say that it plays well.

The problem is you're using the command line DMDScript interpreter, which doesn't support COM. You need to use the COM scripting one, which has to be installed and registered per the instructions.


March 09, 2005
Walter says...
>
>
>"J C Calvarese" <jcc7@cox.net> wrote in message news:d0lm0k$tit$1@digitaldaemon.com...
>> Walter wrote:
>> > "jicman" <jicman_member@pathlink.com> wrote in message news:d03kek$1tra$1@digitaldaemon.com...
>> >
>> >>How well does DMDScript plays with Windows COM objects?
>> >
>> >
>> > The C++ one does, but the D version does not.
>>
>> The C++ might play, but I wouldn't say that it plays well.
>
>The problem is you're using the command line DMDScript interpreter, which doesn't support COM. You need to use the COM scripting one, which has to be installed and registered per the instructions.

Ok, I see.  Is this going to cost me? :-)

josé


March 09, 2005
J C Calvarese says...
>I think it makes a lot of sense to add ActiveX support. Some Linux diehards might snicker, but I'd think most Windows programmers would applaud.

I agree.  I am also a Unix/Linux lover, but let's face it, we all work in a Windows environment nowadays, so this has got to be thought of.  Most big companies are moving into .HECK, errr...I mean, .NET and we are faced, daily, with task that are Windows based.

Adding ActiveX support to both D and DMDScript (d based also) will make serious
programmers think seriously (sorry, couldn't think of another word) about
d/DMDScript.

Just a thought, as always...

josé



March 09, 2005
Carlos Santander B. says...
>How is that JS code that you posted written in D? I could try to implement it in Walnut, but I have no experience with ActiveX besides

What is walnut?  Is that only linux based?


March 09, 2005
jicman wrote:

>>How is that JS code that you posted written in D? I could try to implement it in Walnut, but I have no experience with ActiveX besides 
> 
> What is walnut?  Is that only linux based?

See http://www.dsource.org/projects/walnut/

--anders
March 09, 2005
Walter, it seems like people are starting to ask for it; or at least notice that it's not supported.

http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/86 http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/94

Is there any way we could get it?  Or at least make it a future direction for DMDScript to be implemented in said future?

-Kramer

In article <d0m3f5$1cbj$1@digitaldaemon.com>, Walter says...
>
>
>"J C Calvarese" <jcc7@cox.net> wrote in message news:d0lm0k$tit$1@digitaldaemon.com...
>> Walter wrote:
>> > "jicman" <jicman_member@pathlink.com> wrote in message news:d03kek$1tra$1@digitaldaemon.com...
>> >
>> >>How well does DMDScript plays with Windows COM objects?
>> >
>> >
>> > The C++ one does, but the D version does not.
>>
>> The C++ might play, but I wouldn't say that it plays well.
>
>The problem is you're using the command line DMDScript interpreter, which doesn't support COM. You need to use the COM scripting one, which has to be installed and registered per the instructions.
>
>


March 09, 2005
In article <d0n7kp$2ka2$1@digitaldaemon.com>, Kramer says...
>
>Walter, it seems like people are starting to ask for it; or at least notice that it's not supported.
>
>http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/86 http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/94
>
>Is there any way we could get it?  Or at least make it a future direction for DMDScript to be implemented in said future?

Since Walter has released the source for the D version, we have more options than we used to. If someone can figure out how to implement a function in D, then Carlos Santander can add it to Walnut (and Walter may even decide to add it to his source).

But now that I've seen how the C++ version of DMDScript can actually do some COM, I'm not sure how feasible it's going to be.

Also, was I the only one bothered by this
(http://www.digitalmars.com/dscript/index.html):
"Note: Much of the Windows user interface outside of the browser depends on
Microsoft's JScript engine, and it depends on many undocumented features of
JScript. These undocumented behaviors may not work with DMDScript; DMDScript is
designed to handle script embedded in web pages accessed through the browser.".

Sounds like the most prudent way to run the DMDScript .dll is to do this:
@   regsvr32 dscript.dll
@   treatas jscript dmdscript
@   wscript.exe myscript.js
@   regsvr32 /u dscript.dll
@   treatas jscript

(Note that wscript.exe won't run a DMDScript file unless it's renamed to .js.)

Recipe for disaster? I'm hoping there's a better avenue available that the one traveled by the C++ edition of DMDScript.

>
>-Kramer
>
>In article <d0m3f5$1cbj$1@digitaldaemon.com>, Walter says...
>>
>>The problem is you're using the command line DMDScript interpreter, which doesn't support COM. You need to use the COM scripting one, which has to be installed and registered per the instructions.

jcc7
March 09, 2005
In article <d0mg67$1qmu$1@digitaldaemon.com>, jicman says...
>
>Carlos Santander B. says...
>>How is that JS code that you posted written in D? I could try to implement it in Walnut, but I have no experience with ActiveX besides
>
>What is walnut?  Is that only linux based?

http://www.dsource.org/projects/walnut/

It's Carlos Santander's fork of Walter's DMDScript code. He's trying to add all of the goodies that Walter is too busy to add.

I think it's cross-platform (so everyone can be happy). There's an .exe listed under the downloads, so Windows users should be covered.

jcc7
March 10, 2005
"jicman" <jicman_member@pathlink.com> wrote in message news:d0menf$1p8a$1@digitaldaemon.com...
> >The problem is you're using the command line DMDScript interpreter, which doesn't support COM. You need to use the COM scripting one, which has to
be
> >installed and registered per the instructions.
>
> Ok, I see.  Is this going to cost me? :-)

No, I mean it has to be registered with the Windows system registry!


March 10, 2005
J C Calvarese says...
>
>In article <d0n7kp$2ka2$1@digitaldaemon.com>, Kramer says...
>>
>>Walter, it seems like people are starting to ask for it; or at least notice that it's not supported.
>>
>>http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/86 http://www.digitalmars.com/drn-bin/wwwnews?DMDScript/94
>>
>>Is there any way we could get it?  Or at least make it a future direction for DMDScript to be implemented in said future?
>
>Since Walter has released the source for the D version, we have more options than we used to. If someone can figure out how to implement a function in D, then Carlos Santander can add it to Walnut (and Walter may even decide to add it to his source).
>
>But now that I've seen how the C++ version of DMDScript can actually do some COM, I'm not sure how feasible it's going to be.
>
>Also, was I the only one bothered by this
>(http://www.digitalmars.com/dscript/index.html):
>"Note: Much of the Windows user interface outside of the browser depends on
>Microsoft's JScript engine, and it depends on many undocumented features of
>JScript. These undocumented behaviors may not work with DMDScript; DMDScript is
>designed to handle script embedded in web pages accessed through the browser.".

But Python and Perl can open a browser and a Word Document and an Excel spreadsheet and...  So, if they did it, why can we?  The other nice thing would be to have d also have this functionalities!  Man, I would be in love again...

jic