Jump to content

exe to dll. Deploying IIS7. Am I missing something?


ttamturk

Recommended Posts

Hi,

 

First of all this is newbie question. Sorry If It is basic, simple question. But I am stuck.

 

I compiled my uniGui application in DelphiXE2, Standalone Server mode, running exe server. Call in browser at address "local:8077", running perfectly. No problem at my local pc with exe file..

 

Yesterday, I try to deploy to a Windwos2008 server with IIS7. Than I realize that deploying part is a DLL not an exe file.. I search forum but I could not find a clue.

 

How can I produce this DLL?

 

Thanks,

Tugrul

Link to comment
Share on other sites

  • Administrators

There several ways to create a project in uniGUI.

 

Your project is created in one of following ways:

 

1) Standalone exe

 

In this case project can't be directly converted to a DLL. You must create a blank ISAPI Module or Standalone ISAPI Combo project and manually move all your forms and modules to new project.

 

2) Standalone + ISAPI Module Combo project

 

Open the project file and comment the first line:

 

{$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module

 

Rebuild your project and a DLL file will be created in output directory.

Link to comment
Share on other sites

Sorry for disturbing you.. But no {$define UNIGUI_VCL} directive in my project.

 

I feel that doing something wrong from begining may be... :(

 

program IstakipWeb;

 

uses

Forms,

ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule},

MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule},

Main in 'Main.pas' {MainForm: TUniForm};

 

{$R *.res}

 

begin

Application.Initialize;

TUniServerModule.Create(Application);

Application.Run;

end.

Link to comment
Share on other sites

Now I see after examine your demo sources. In any case a newbie fall in same situation like me, I leave redesinged project source lines. Thank you..

 

{.$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module

 

{$ifndef UNIGUI_VCL}

library

{$else}

program

{$endif}

IstakipWeb;

 

uses

uniGUIISAPI, //<-This is new

Forms,

ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule},

MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule},

Main in 'Main.pas' {MainForm: TUniForm};

 

{$R *.res}

 

{$ifndef UNIGUI_VCL}

exports

GetExtensionVersion,

HttpExtensionProc,

TerminateExtension;

{$endif}

 

begin

{$ifdef UNIGUI_VCL}

Application.Initialize;

TUniServerModule.Create(Application);

Application.Run;

{$endif}

end.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...