albertovesx Posted July 13, 2017 Share Posted July 13, 2017 Is it enough to modify the source project adding the code contain in {} to convert it into isapi/standalone? I did it with a project and it worked, but I dont know if this is all the modification that we need to do. //{$define UNIGUI_VCL} // Comment out this line to turn this project into an ISAPI module {$ifndef UNIGUI_VCL} library {$else} program {$endif} Project1; uses uniGUIISAPI, 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} ReportMemoryLeaksOnShutdown := True; Application.Initialize; TUniServerModule.Create(Application); Application.Run; {$endif} end. 1 Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted July 13, 2017 Share Posted July 13, 2017 Hi if you Comment out First line to turn in you'r project,it goes into an ISAPI module. and it is enough . Best Regards. Quote Link to comment Share on other sites More sharing options...
albertovesx Posted July 20, 2017 Author Share Posted July 20, 2017 Hi, A. soltani. I understand your solution, but that is when we want: Standalone/ISAPI ----Want to convert it into ---->ISAPI in my case I have the following: Standalone project ----want to convert it into ---> Standalone/ISAPI My question remains. Is it enough to just add the code contains in {} to convert it into standalone/isapi project? I also modified the stack size in the ISAPI properties. Best regards Quote Link to comment Share on other sites More sharing options...
Ario.Paxaz Posted July 20, 2017 Share Posted July 20, 2017 Hi Standalone like below. program Project1; uses Forms, ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule}, MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule}, Main in 'Main.pas' {MainForm: TUniForm}; {$R *.res} begin ReportMemoryLeaksOnShutdown := True; Application.Initialize; TUniServerModule.Create(Application); Application.Run; end. and Standalone/ISAPI like the first post.compare them,and add anything that is less. Best Regards. 1 Quote Link to comment Share on other sites More sharing options...
albertovesx Posted July 20, 2017 Author Share Posted July 20, 2017 Ok, Thank you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.