Hello ppl I want to know some conceptual details abt VBScript since I am new to it. My questions are as follows: 1. When a Script runs, does it create its own address space or does it run in some predefined address space? I believe that all the VBScript APIs are a part of VBScript.dll which is mapped system wide. Is this true? 2. How does the stack concept(while calling functions) change when comparing C and VBScript? Does a call of a function in VBScript create a new stack frame? I somehow have the feeling after reading some VBScripts that all the functions are sharing the same stack space. Please correct me if I am wrong. 3. Are arguments to functions passed by reference or by value in VBScript? I am only talking of normal function calls and not of API calls of different COM objects. Thanks in advance regards Harry
harry wrote: > Hello ppl > > I want to know some conceptual details abt VBScript since I am new to > it. My questions are as follows: > > 1. When a Script runs, does it create its own address space or does it > run in some predefined address space? I believe that all the VBScript > APIs are a part of VBScript.dll which is mapped system wide. Is this > true? > I don't know, and in all my years working with vbscript, I've never even wondered about it. I expect you could get a definitive answer by emailing Eric Lippert via his blog site: http://weblogs.asp.net/EricLippert > 2. How does the stack concept(while calling functions) change when > comparing C and VBScript? Does a call of a function in VBScript create > a new stack frame? I somehow have the feeling after reading some > VBScripts that all the functions are sharing the same stack space. > Please correct me if I am wrong. Again, go to the blog. . > > 3. Are arguments to functions passed by reference or by value in > VBScript? The default is by reference. You can pass arguments by value either by using the ByRef keyword when declaring them, or by surrounding them with parentheses when calling the function: http://blogs.msdn.com/ericlippert/archive/2003/09/15/52996.aspx You can download the vbscript documentation from http://www.microsoft.com/downloads/details.aspx?FamilyID=01592c48-207d-4be1-8a76-1c4099d7bbb9&DisplayLang=en Just be aware that it doesn't get as much under the hood as you seem to need. -- Microsoft MVP -- ASP/ASP.NET Please reply to the newsgroup. The email account listed in my From header is my spam trap, so I don't check it very often. You will get a quicker response by posting to the newsgroup.