Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Converting Stand Alone Applications to ISAPI Applications

Posted on 2008-11-17
1
Medium Priority
?
948 Views
Last Modified: 2013-11-23
I have D2007 and created a stand application using Intraweb- works fine.  I am trying to find a way to convert this to ISAPI.  I found the following link: http://www.delphipages.com/threads/thread.cfm?ID=126000&G=125997 but it does not match the dpr created by D2007.  I would appreciate intructions on how to do this.

My dpr files looks like this:


program WebGUI;

uses
  Forms,
  IWMain,
  WebGUIMainPage in 'WebGUIMainPage.pas' {IWForm2: TIWAppForm},
  ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase},
  UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase},
  WbemScripting_TLB in 'WbemScripting_TLB.pas',
  BasicNetworkSetup in 'BasicNetworkSetup.pas' {FrameBasicNetSetup: TFrame},
  SimpleGraphicsSetup in 'SimpleGraphicsSetup.pas' {GraphicsSetup: TFrame},
  unitAdvGraphicsSetup in 'unitAdvGraphicsSetup.pas' {AdvGraphicsSetup: TFrame},

{$R *.res}

begin
  Application.Initialize;
  Application.CreateForm(TformIWMain, formIWMain);
  Application.Run;
end.
0
Comment
Question by:viziopoint
1 Comment
 
LVL 28

Accepted Solution

by:
2266180 earned 2000 total points
ID: 23104055
ISAPI applications are actually DLLs with specific functions exported.
the link you refer from delphipages shows how to replace some/use some of the units there. Hoever, that's D6 and you use D2007 so there can be a chance that things chaned over the years. I have D7, which has those units and turbo delphi, which again has them.

so, your best try is:

then work your compilation erros out. also, make sure you read that DP link fully to see what to use/not use.
I am not saying this will work, since i don't have D2007 to test, but it's a starting point. let us know the errors and maybe we can figure it out in the end.
library WebGUI;
 
uses
  IWInitISAPI,
  Forms,// not sure if this needed anymore
  IWMain,// same here
  WebGUIMainPage in 'WebGUIMainPage.pas' {IWForm2: TIWAppForm},
  ServerController in 'ServerController.pas' {IWServerController: TIWServerControllerBase},
  UserSessionUnit in 'UserSessionUnit.pas' {IWUserSession: TIWUserSessionBase},
  WbemScripting_TLB in 'WbemScripting_TLB.pas',
  BasicNetworkSetup in 'BasicNetworkSetup.pas' {FrameBasicNetSetup: TFrame},
  SimpleGraphicsSetup in 'SimpleGraphicsSetup.pas' {GraphicsSetup: TFrame},
  unitAdvGraphicsSetup in 'unitAdvGraphicsSetup.pas' {AdvGraphicsSetup: TFrame},
 
{$R *.res}
 
begin
  IWRun(TformIWMain, formIWMain);
end.

Open in new window

0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Loops Section Overview
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question