Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: API


Message #1 by Shaun Steckley <SSTECKLEY@P...> on Mon, 8 Jul 2002 09:16:20 -0400
Can anyone tell me if it is possible to call the windows API from ASP
without wrapping the call in a COM object.  I want to know if there is any
way to define the API function within ASP and call it directly.  I am
assuming not, but wanted to ask your opinions...

Thanks
Shaun


The information contained in this email is confidential and is intended solely for the use of the person identified and intended as
the recipient. If you are not the intended recipient, any disclosure, copying, distribution, or taking of any action in reliance on
the contents is prohibited. If you receive this message in error, contact the sender immediately and delete it from your computer.

Message #2 by "Larry Woods" <larry@l...> on Mon, 8 Jul 2002 06:55:12 -0700
I would guess the answer is 'No' since Declare is not defined in
VBScript...or Javascript.  Also, since data values passed to/from
Windows API's are strongly typed...and VBScript only supports
Variants, it would be impossible(?) to transfer values.

Larry Woods


> -----Original Message-----
> From: Shaun Steckley [mailto:SSTECKLEY@P...]
> Sent: Monday, July 08, 2002 6:16 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] API
>
>
> Can anyone tell me if it is possible to call the
> windows API from ASP
> without wrapping the call in a COM object.  I want to
> know if there is any
> way to define the API function within ASP and call it
> directly.  I am
> assuming not, but wanted to ask your opinions...
>
> Thanks
> Shaun
>
>
> The information contained in this email is
> confidential and is intended solely for the use of the
> person identified and intended as the recipient. If
> you are not the intended recipient, any disclosure,
> copying, distribution, or taking of any action in
> reliance on the contents is prohibited. If you receive
> this message in error, contact the sender immediately
> and delete it from your computer.
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=n
osim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/thepr
ogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/thepr
ogramme
r-20

Message #3 by kyle.b.willman@u... on Mon, 8 Jul 2002 09:18:05 -0500
It has been a while, and I can't remember where I saw it, but it can be
done by using a "roundabout" method.  You can use a server side executable
that is called through VBScript passing to the executable the function name
and variables.  The executable performs the conversions of data types and
executes the API.  It is not quite as good as calling the API itself
through VBScript (still not sure if it can be done), but close.  Some
performance limitations on a site taking some hits as well.  Just a
thought...

Kyle B. Willman
PricewaterhouseCoopers LLP
Office:  xxx.xxx.xxxx
Cell:   xxx.xxx.xxxx


                                                                                                                                    
                      "Larry Woods"                                                                                                 
                      <larry@l...>       To: "ASP Web HowTo" <asp_web_howto@p...>                         
                      07/08/2002 08:55         cc:                                                                                  
                      AM                       Subject:  [asp_web_howto] RE: API                                                    
                                                                                                                                    
                      Please respond to                                                                                             
                      "ASP Web HowTo"                                                                                               
                                                                                                                                    
                                                                                                                                    




I would guess the answer is 'No' since Declare is not defined in
VBScript...or Javascript.  Also, since data values passed to/from
Windows API's are strongly typed...and VBScript only supports
Variants, it would be impossible(?) to transfer values.

Larry Woods


> -----Original Message-----
> From: Shaun Steckley [mailto:SSTECKLEY@P...]
> Sent: Monday, July 08, 2002 6:16 AM
> To: ASP Web HowTo
> Subject: [asp_web_howto] API
>
>
> Can anyone tell me if it is possible to call the
> windows API from ASP
> without wrapping the call in a COM object.  I want to
> know if there is any
> way to define the API function within ASP and call it
> directly.  I am
> assuming not, but wanted to ask your opinions...
>
> Thanks
> Shaun
>
>
> The information contained in this email is
> confidential and is intended solely for the use of the
> person identified and intended as the recipient. If
> you are not the intended recipient, any disclosure,
> copying, distribution, or taking of any action in
> reliance on the contents is prohibited. If you receive
> this message in error, contact the sender immediately
> and delete it from your computer.
>
>
>
> ---
>
> Improve your web design skills with these new books
> from Glasshaus.
>
> Usable Web Menus
> http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=n
osim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/thepr
ogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/thepr
ogramme
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20




_________________________________________________________________
         The information transmitted is intended only for the person or
         entity to which it is addressed and may contain confidential
         and/or privileged material.  Any review, retransmission,
         dissemination or other use of, or taking of any action in reliance
         upon, this information by persons or entities other than the
         intended recipient is prohibited.   If you received this in error,
         please contact the sender and delete the material from any
         computer.


  Return to Index