From: Mayayana on 7 Aug 2010 08:23 | | I want a dynamic Object hierarchy that is created at run-time. This | dynamic Object hierarchy must work in every language that supports ActiveX. | I don't really understand what you mean by a dynamic object hierarchy. And I don't really understand your last post. "Windows components"? "Exported objects"? I wonder if we're all using the same terminology. You seem to be saying that you're working on a project to write something complex using a number of script components. You realize that a script component is just a VBScript that can be registered as a COM object? And it requires Windows Script Host. Maybe it would help if you explained more of what you're actually trying to do.
From: Peter Olcott on 7 Aug 2010 11:40 On 8/7/2010 7:23 AM, Mayayana wrote: > | > | I want a dynamic Object hierarchy that is created at run-time. This > | dynamic Object hierarchy must work in every language that supports > ActiveX. > | > > I don't really understand what you mean > by a dynamic object hierarchy. And I don't > really understand your last post. "Windows > components"? "Exported objects"? I wonder > if we're all using the same terminology. You > seem to be saying that you're working on a > project to write something complex using a > number of script components. You realize > that a script component is just a VBScript that > can be registered as a COM object? And it > requires Windows Script Host. > > Maybe it would help if you explained more > of what you're actually trying to do. > > I need to be able to connect different COM components together in a hierarchy dynamically at run-time. This component hierarchy must be able to be used by every COM language including VBScript. The components may be written written in VBScript or any other COM language. -- 100% Accurate Display Screen OCR http://www.OCR4Screen.com
From: Tom Lavedas on 7 Aug 2010 14:14 On Aug 7, 11:40 am, Peter Olcott <NoS...(a)OCR4Screen.com> wrote: > On 8/7/2010 7:23 AM, Mayayana wrote: > > > | > > | I want a dynamic Object hierarchy that is created at run-time. This > > | dynamic Object hierarchy must work in every language that supports > > ActiveX. > > | > > > I don't really understand what you mean > > by a dynamic object hierarchy. And I don't > > really understand your last post. "Windows > > components"? "Exported objects"? I wonder > > if we're all using the same terminology. You > > seem to be saying that you're working on a > > project to write something complex using a > > number of script components. You realize > > that a script component is just a VBScript that > > can be registered as a COM object? And it > > requires Windows Script Host. > > > Maybe it would help if you explained more > > of what you're actually trying to do. > > I need to be able to connect different COM components together in a > hierarchy dynamically at run-time. > > This component hierarchy must be able to be used by every COM language > including VBScript. > > The components may be written written in VBScript or any other COM > language. > > -- > 100% Accurate Display Screen OCRhttp://www.OCR4Screen.com Repeating the same thing with different sentence structure is not too useful. However, in WSH scripting an array can contain anything ( as someone said early on), even an object. For example, this works ... ObjArray = Array(Wscript, _ CreateObject("Scripting.FileSystemObject"), _ CreateObject("Shell.Application"), _ CreateObject("Wscript.Shell"), _ Empty _ ) set ObjArray(4) = CreateObject("Wscript.Network") wsh.echo UBound(ObjArray) Does that answer your question? _____________________ Tom Lavedas
From: Peter Olcott on 7 Aug 2010 14:42 On 8/6/2010 7:07 PM, Mayayana wrote: > I don't know if you can actually create an array > of objects. It sounds like what you want is > a Dictionary. But if you want an object hierarchy > it might be better to use classes. > > | Can a Component written in VBScript return an array of different Object > | types? In other words the elements of the array are not the same type. > | > > How would a dictionary of COM components work in VBScript? -- 100% Accurate Display Screen OCR http://www.OCR4Screen.com
From: Peter Olcott on 7 Aug 2010 14:47 On 8/7/2010 1:14 PM, Tom Lavedas wrote: > On Aug 7, 11:40 am, Peter Olcott<NoS...(a)OCR4Screen.com> wrote: >> On 8/7/2010 7:23 AM, Mayayana wrote: >> >>> | >>> | I want a dynamic Object hierarchy that is created at run-time. This >>> | dynamic Object hierarchy must work in every language that supports >>> ActiveX. >>> | >> >>> I don't really understand what you mean >>> by a dynamic object hierarchy. And I don't >>> really understand your last post. "Windows >>> components"? "Exported objects"? I wonder >>> if we're all using the same terminology. You >>> seem to be saying that you're working on a >>> project to write something complex using a >>> number of script components. You realize >>> that a script component is just a VBScript that >>> can be registered as a COM object? And it >>> requires Windows Script Host. >> >>> Maybe it would help if you explained more >>> of what you're actually trying to do. >> >> I need to be able to connect different COM components together in a >> hierarchy dynamically at run-time. >> >> This component hierarchy must be able to be used by every COM language >> including VBScript. >> >> The components may be written written in VBScript or any other COM >> language. >> >> -- >> 100% Accurate Display Screen OCRhttp://www.OCR4Screen.com > > Repeating the same thing with different sentence structure is not too > useful. > > However, in WSH scripting an array can contain anything ( as someone > said early on), even an object. For example, this works ... > > ObjArray = Array(Wscript, _ > CreateObject("Scripting.FileSystemObject"), _ > CreateObject("Shell.Application"), _ > CreateObject("Wscript.Shell"), _ > Empty _ > ) > set ObjArray(4) = CreateObject("Wscript.Network") > wsh.echo UBound(ObjArray) > > Does that answer your question? > _____________________ > Tom Lavedas This perfectly answered my original question. Thanks. -- 100% Accurate Display Screen OCR http://www.OCR4Screen.com
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 Prev: How to "harvest" the contents of a hidden or "about blank" web Next: start and monitor |