🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
1 messages
1 total messages Started by Michael Gillen Tue, 02 Oct 2007 13:38
Intraweb ISAPI DLL and C++ Export
#179
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads