If you have created a VCL for the Web application and wish to change it to ISAPI/NSAPI or Apache plugins, you can do it with a few simple changes to your code.
It is, however, recommended that you start with a standalone application, to ease debugging, and later convert the application to an extension.
exports
GetExtensionVersion,
HttpExtensionProc,
TerminateExtension;
begin IWRun; end.
When you are done the project source file should look like this:
library Project1; uses ISAPIApp, IWInitISAPI, ISAPIThreadPool, Unit1 in 'Unit1.pas' {IWForm1: TIWAppForm}, ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase}, UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase}; {$R *.RES} exports GetExtensionVersion, HttpExtensionProc, TerminateExtension; begin IWRun; end.
begin IWRun; end.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|