www.digitalmars.com         C & C++   DMDScript  

DMDScript - Re: DMDScript 1.13

reply Dan <murpsoft hotmail.com> writes:
Heh.

Walter removed my post mentioning that I'd prettyprinted DMDScript, arranged
it into folders, and had activex half working?

It'll be on the web elsewhere once I finish getting activex working.  That's
all I can say.

I'll be sure to keep you guys informed.
Feb 10 2007
next sibling parent reply Dan <murpsoft hotmail.com> writes:
Update:

I've currently got:
- a non-functional ActiveXObject() in DScript;
- a functional ActiveXObject() in D;

I derived the functional ActiveXObject from the one provided in Core32, and
ported
it over to the MinGW work done by Stewart Gordon (which had a bug with
ITypeInfo btw)

Now I have to:
- Put the two together to bind ActiveXObject in DScript to actual COM
- Write the Put/Get/Call routines for the ActiveXObject so they don't require
special methods (ex: ie.set("Visible",toVariant(true)); )

It's now 1pm here, if I'm lucky I'll have it done before bedtime.
*crosses fingers*

Sincerely,
Dan
Feb 11 2007
parent reply Justin C Calvarese <technocrat7 gmail.com> writes:
Dan wrote:
 Update:
 
 I've currently got:
 - a non-functional ActiveXObject() in DScript;
 - a functional ActiveXObject() in D;

Sounds great!
 
 I derived the functional ActiveXObject from the one provided in Core32, and
ported
 it over to the MinGW work done by Stewart Gordon (which had a bug with
ITypeInfo btw)

I assume your referring to this project: http://www.prowiki.org/wiki4d/wiki.cgi?WindowsAPI What was the error? Did you tell Stewart about it?
 Now I have to:
 - Put the two together to bind ActiveXObject in DScript to actual COM
 - Write the Put/Get/Call routines for the ActiveXObject so they don't require
 special methods (ex: ie.set("Visible",toVariant(true)); )
 
 It's now 1pm here, if I'm lucky I'll have it done before bedtime.
 *crosses fingers*

-- jcc7
Feb 13 2007
parent reply Dan <murpsoft hotmail.com> writes:
jcc,

Yes, that's the project.  No I didn't tell him.

The error was that some of his objbase.d functions expected ITypeInfo**'s,
instead
of just ITypeInfo*'s.  I just ran into two of them; and found it worked with
just
ITypeInfo*'s (actually ran)

I have put the two parts together, and now have an ActiveXObject within the
DScript engine.  When I hard code ie.set("Visible",toVariant(true)); etc, it
works.

The remaining issue now is to bind the working ActiveXObject to Dscript.  That
will involve some heavy modification of loadMembers() etc.

jcc, I just realized that nothing on dsource.org is licensed.  It just claims to
be "Open Source Development".  Any idea where I could get licensing information
(to cover myself?)
Feb 14 2007
next sibling parent jcc7 <technocrat7 gmail.com> writes:
== Quote from Dan (murpsoft hotmail.com)'s article
 jcc,

 Yes, that's the project.  No I didn't tell him.

 The error was that some of his objbase.d functions expected
 ITypeInfo**'s, instead of just ITypeInfo*'s.  I just ran into two of
 them; and found it worked with just ITypeInfo*'s (actually ran)

Oh, I think I ran across the same thing the other day. It seems to work when I used a cast.
 I have put the two parts together, and now have an ActiveXObject
 within the DScript engine.  When I hard code
 ie.set("Visible",toVariant(true)); etc, it works.

That's great!
 The remaining issue now is to bind the working ActiveXObject to
 Dscript.  That will involve some heavy modification of loadMembers()
 etc.

 jcc, I just realized that nothing on dsource.org is licensed.  It
 just claims to be "Open Source Development".  Any idea where I could > get

 (to cover myself?)

Is "Placed into public domain" good enough for your purposes? I think the header of each file has the same public domain notice: http://www.dsource.org/projects/bindings/browser/trunk/win32/w32api.d I think they picked the MinGW headers as a basis because they are public domain and the intention is to have the D port be public domain, too. jcc7
Feb 14 2007
prev sibling parent reply Carlos Santander <csantander619 gmail.com> writes:
Dan escribió:
 jcc,
 
 Yes, that's the project.  No I didn't tell him.
 
 The error was that some of his objbase.d functions expected ITypeInfo**'s,
instead
 of just ITypeInfo*'s.  I just ran into two of them; and found it worked with
just
 ITypeInfo*'s (actually ran)
 
 I have put the two parts together, and now have an ActiveXObject within the
 DScript engine.  When I hard code ie.set("Visible",toVariant(true)); etc, it
works.
 
 The remaining issue now is to bind the working ActiveXObject to Dscript.  That
 will involve some heavy modification of loadMembers() etc.
 

I think I solved some of those things in Walnut. Check its (old and abandoned) source at DSource.
 jcc, I just realized that nothing on dsource.org is licensed.  It just claims
to
 be "Open Source Development".  Any idea where I could get licensing information
 (to cover myself?)

-- Carlos Santander Bernal
Feb 14 2007
parent reply Dan <murpsoft hotmail.com> writes:
Okay Carlos, I'll check it out.

Glad to know I don't have to bury the work because of licensing.  : )

I'm gonna be off for the rest of the day.  I'm sick with the flu.
Feb 14 2007
parent reply Dan <murpsoft hotmail.com> writes:
I tried to sleuth down the source for walnut, but it's not visible online to
either google or dsource.org/ that I could find.

If someone could direct me to the location, I'd appreciate it.  Thanks, Dan.
Feb 16 2007
parent reply Lars Ivar Igesund <larsivar igesund.net> writes:
Dan wrote:

 I tried to sleuth down the source for walnut, but it's not visible online
 to either google or dsource.org/ that I could find.
 
 If someone could direct me to the location, I'd appreciate it.  Thanks,
 Dan.

You should get to the subversion repository using the below svn co http://svn.dsource.org/projects/walnut walnut -- Lars Ivar Igesund blog at http://larsivi.net DSource, #d.tango & #D: larsivi Dancing the Tango
Feb 16 2007
parent reply Dan <murpsoft hotmail.com> writes:
Okay, from what I've read, the stuff that was part of walnut was related to
Core32
and MinGW (sp?)

I borrowed code from jcc7 and carlos already as public domain.

I created a DScript native object, the ActiveXObject, and attached the com
functionality from the borrowed code.  I've since modified toVariant to make it
implicit.  It's now done when you set, setByRef or call anything.

I'm now going to try to expose the names of the ActiveXObject set/get/call
"properties/methods" to DScript, and then work on being able to call them.
Feb 17 2007
parent reply Dan <murpsoft hotmail.com> writes:
I now have it listing off the COM members within DScript.  It properly handles
constructor and prototype, and lists all the values as undefined.

I've been trying to get it to properly do gets through Dobject's Value*
Get(char[]
member){} So far it's not working.

Dan gets no banana.

Walter:  Attachments make posting fail.  Sorry about the earlier comment.  : p
Feb 17 2007
parent Dan <murpsoft hotmail.com> writes:
In case anyone missed it, I've released source as "Walnut":

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

It's not perfect, but I think it's an improvement.
Feb 25 2007
prev sibling parent Walter Bright <newshound1 digitalmars.com> writes:
Dan wrote:
 Walter removed my post mentioning that I'd prettyprinted DMDScript, arranged
 it into folders, and had activex half working?

I don't recall removing any such posts, though there could have been some sort of error in the newsgroup software. Are you sure one was posted?
Apr 18 2007