Converting Stand Alone Applications to ISAPI Applications

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.
viziopointAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

2266180Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.