Главная страница | назад





Article #28270: ISAPI DLL used to work with Delphi 5 but doesn't work in Delphi 6

My Delphi5 Isapi Dlls run fine from Netscape, but when I create an Isapi DLL in Delphi6 it fails to work in a Netscape FastTrack WebServer.

Delphi6 adds a Unit to the project that didn't exist in Delphi5. This new unit will keep the ISAPI DLL from loading into Netscape Server. To correct this problem comment out the "ISAPIThreadPool" unit from your Delphi6 source and recompile.

Your new DPR for an ISAPI dll might look something like this:

library ISAPI_Prog;
uses
WebBroker,
// ISAPIThreadPool, comment this out for Netscape
ISAPIApp,
Unit1 in 'Unit1.pas' {WebModule1: TWebModule};
{$R *.RES}
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin
Application.Initialize;
Application.CreateForm(TWebModule1, WebModule1);
Application.Run;
end.

Last Modified: 24-JAN-02