API calls

Results 1 to 2 of 2

Thread: API calls

  1. #1
    fazal Guest

    Default API calls

    How can I make API calls from ASP? Is it possible?

  2. #2
    Join Date
    Dec 1969

    Default RE: API calls

    &#062; How can I make API calls from ASP? Is it possible?<BR><BR>Sure:<BR><BR>&#060;%<BR>gotHereFr om = Request.ServerVariables("HTTP_REFERER")<BR>%&#062; <BR><BR>See the Application Programming Interface for ASP includes the specs of lots of methods on various "built in" objects. And, of course, then there is the API spec for that ADODB objects and the Scripting objects and...<BR><BR>Oh, that isn&#039t what you meant?<BR><BR>You meant the Windows API?<BR><BR>*WHICH* Windows API? The one that C++ programmers use when they use ATL? Or the one that Visual Basic programmers use to access combo boxes on the screen? Or...<BR><BR>Ehhh...not that it really matters.<BR><BR>The overall answer is: *You* must create an ActiveX component that implements some scriptable method(s) and that acts as your proxy in calling the various system APIs.<BR><BR>The scripting languages of ASP understand *only* how to make calls to proper ActiveX objects via OLE Automation. And even then they can only do it if you provide automation methods that accept and return compatible types of arguments.<BR><BR>So if you can&#039t find a (possibly third-party) component that makes the call you want, you&#039ll have to create your own. Pretty easy to do with VB. Not atrociously difficult with ATL.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts