ttamturk Posted February 26, 2012 Share Posted February 26, 2012 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 More sharing options...
lema Posted February 26, 2012 Share Posted February 26, 2012 Hi ! Just comment out the 1st line of your Project source. {.$DEFINE UNIGUI_VCL} That's enough to turn the project into an ISAPI module. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted February 26, 2012 Administrators Share Posted February 26, 2012 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 More sharing options...
ttamturk Posted February 26, 2012 Author Share Posted February 26, 2012 Thank you very much! Link to comment Share on other sites More sharing options...
ttamturk Posted February 26, 2012 Author Share Posted February 26, 2012 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 More sharing options...
ttamturk Posted February 26, 2012 Author Share Posted February 26, 2012 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now