Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript & API?

Status
Not open for further replies.

Sentinel010

Programmer
Jun 11, 2002
3
US
Is VBScript capable of utilizing API calls? I've tried the standard 'DECLARE' statement but it doesn't seem to work. Anyone have any ideas?
 
Others may be able to speak to this better, but I am under the understanding that VBScript can not access dll on your local machine for security reasons. (think what might be embedded into web sites if this were the case).
 
I think that's true, but what VBScript can do is access any ActiveX/COM objects that are registered on the server. It would seem that if you wanted to access the WinAPI, you'd have to write a COM DLL that contains an object that wraps calls to the WinAPI.
 
It's in the variables. VBScript only knows untyped (variant) variables, while API calls must be given parameters of the correct type.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top