🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #179

Intraweb ISAPI DLL and C++ Export

#179
From: Michael Gillen
Date: Tue, 02 Oct 2007 13:38
46 lines
2387 bytes
RAD Studio 2007 (C++ Bulder)

I have virtually no experience with DLLs or IntraWeb, but this app must work with IIS on port 80.

I have been unable to get an ISAPI DLL to work as I get the error "The specified module could not
be found." I assume that this is because of the exports I found referred to in newsgroups. I have
not been able to figure out how to do it for InteraWeb.

WebBroker creates this, but I don't think the classes apply (I get errors).

extern "C"
{
  BOOL __declspec(dllexport) WINAPI GetExtensionVersion(Isapi2::THSE_VERSION_INFO &Ver)
  {
	return Isapithreadpool::GetExtensionVersion(Ver);
  }
  //---------------------------------------------------------------------------
  unsigned __declspec(dllexport) WINAPI HttpExtensionProc(Isapi2::TEXTENSION_CONTROL_BLOCK &ECB)
  {
	return Isapithreadpool::HttpExtensionProc(ECB);
  }
  //---------------------------------------------------------------------------
  BOOL __declspec(dllexport) WINAPI TerminateExtension(int dwFlags)
  {
	return Isapithreadpool::TerminateExtension(dwFlags);
  }
}

Also, is a def file needed too? If so, is this correct?
**************
; TestIsapi.def : Declares the module parameters for the DLL.
 
LIBRARY     TESTISAPI.DLL
EXPORTS
    _GetExtensionVersion    @1  ; _GetExtensionVersion
    _HttpExtensionProc      @2  ; _HttpExtensionProc
    _TerminateExtension     @3  ; _TerminateExtension
    ___CPPdebugHook         @4 ; ___CPPdebugHook

**************


-- 
-Michael Gillen
Hollister, CA
UTC/GMT -7
Technical Details
Message-ID: <470249d2@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,c2b0a7f562b55330,start
X-Google-Attributes: gidfeeec,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Michael Gillen" <michael@gillenconsultinggroup-nospam.com>
Subject: Intraweb ISAPI DLL and C++ Export
Newsgroups: borland.public.cppbuilder.internet.web
User-Agent: XanaNews/1.18.1.6
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 67.122.199.249
Message-ID: <470249d2@newsgroups.borland.com>
Date: 2 Oct 2007 06:38:26 -0700
X-Trace: newsgroups.borland.com 1191332306 67.122.199.249 (2 Oct 2007 06:38:26 -0700)
Lines: 46
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail