Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: 11 Nov 2005 02:27:57 -0800,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


VBScript Conceptual details   
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
date: 11 Nov 2005 02:27:57 -0800   author:   harry

Re: VBScript Conceptual details   
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.
date: Mon, 14 Nov 2005 09:43:04 -0500   author:   Bob Barrows [MVP] com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us