然后在project中将相应内容替换一下。也就是将program改为library等等
***********************webapp debugger*********************************
program Project1;
{$APPTYPE GUI}
uses
Forms,
SockApp,
Unit1 in 'Unit1.pas' {Form1},
Unit2 in 'Unit2.pas' {WebModule2: TWebModule};
{$R *.res}
begin
Application.Initialize;
Application.CreateForm(TWebModule2, WebModule2);
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
*****************************isap/nsap*****************************
library Project1;
uses
ActiveX,
ComObj,
WebBroker,
ISAPIThreadPool,
ISAPIApp,
Unit1 in 'Unit1.pas' {WebModule1: TWebModule};
{$R *.res}
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin
CoInitFlags := COINIT_MULTITHREADED;
Application.Initialize;
Application.CreateForm(TWebModule1, WebModule1);
Application.Run;
end.