An ISAPI project to show frames

This article describes an ISAPI project to send a page containing two frames to the browser.

The ISAM generates a page that contains a FRAMESET tag with the SRC fields pointing to the ISAM itself with GetFrame commands (see the html source for the dinamically generated page).

The full source code for the ISAM is provided, you will have to compile it in order to get a working site. Before compiling you will have to change a constant in the code: the module location. This constant is found in the isam.cpp file. Once you have compiled the project with correct site location you will need to take the following steps to install:

  • Create a directory under your http server root for the project
  • Copy the isam.dll file to this directory
  • Create a virtual directory in your http server to access the dll (remember to grant execute rights). The name of the directory must be the same you set in the project

Download Source Code


Last updated: 10 June 1998



Comments

  • ISAPI database

    Posted by Legacy on 02/12/2003 12:00am

    Originally posted by: anjali

    examples for isapi programming using database detail to store in database and retreiving data....

    Reply
  • Invoking an ISAPI extension programmatically

    Posted by Legacy on 04/17/2002 12:00am

    Originally posted by: Edwin

    I am having problem invoking my ISAPI extension programmatically.

    my code is something like this:

    static char formAction[] = "http://graphics:8081/tzTalk/tzTalk.dll";

    static char hdrs[]
    = "Content-Type: application/x-www-form-urlencoded"

    static Accept[] = "Accept: */*"

    hRequest = HttpOpenRequest( hConnect,
    "GET", formAction, NULL,
    NULL,
    accept,
    0,
    1 );

    HttpSendRequest( hRequest,
    hdrs,
    (DWORD)strlen(hdrs),
    NULL,
    0 );


    In the above code the HTTP Server running on IIS 5.0 returns :

    HTTP 404 - File not found

    BUT when I use a brower having these htm code below, It successfully invoke my ISAPI extension...

    <html>
    <title>eJobs</title>
    <h1>tzTalk ISAPI Extension</h1>
    <body>
    <hr>
    <b><i>"Hello how are you today?"</i></b><p>
    <p>
    <hr>
    <p>
    <FORM action="/tzTalk/tzTalk.dll" method="get">
    <P>
    Enter Input Data: <INPUT NAME="input_value" VALUE="" >
    <INPUT TYPE="SUBMIT" VALUE="Invoke"> <INPUT TYPE="RESET">
    </FORM>
    <hr>
    </body>
    </html>


    Can you help me on this? How can I invoke my ISAPI extension pogrammatically? Your help is very much appreciated.

    Reply
Leave a Comment
  • Your email address will not be published. All fields are required.

Top White Papers and Webcasts

  • Live Event Date: May 6, 2014 @ 1:00 p.m. ET / 10:00 a.m. PT While you likely have very good reasons for remaining on WinXP after end of support -- an estimated 20-30% of worldwide devices still are -- the bottom line is your security risk is now significant. In the absence of security patches, attackers will certainly turn their attention to this new opportunity. Join Lumension Vice President Paul Zimski in this one-hour webcast to discuss risk and, more importantly, 5 pragmatic risk mitigation techniques …

  • Given today's threat environment and the increasing connectivity of digital infrastructures, security teams now realize that they must assume their IT environments are subject to periodic compromise. Gone are the days when preventive measures to secure the perimeter or trying to detect malware problems using signature-match technologies were enough. New practices based on an understanding of the phases of an attack, continuous threat monitoring, and rapid attack detection and remediation are necessary. This …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds