Search the Community
Showing results for tags 'DLL'.
-
HI Everybody i open a new Browser Page with the following coomand (from the website): UniSession.BrowserWindow('news/news.dll', 1280,1024, '_blank' ); and so i start a new UniGui Application in Form Mode, it work super but when i let the user quit the application with a Form.Close the result is an empty new Browser Windows (blue screen with the "Restart Application" line.... How can i close this Browser Windows? Thanks for any help. Davide
-
Hi everyone! Is there any solution to hide parameters like 'xxx.DLL' in mobile navigation on uniGUI? I mean, everytime we start the application on mobile he loads the main site and his .DLL. I want to hide all captions after '.com', including the 'ABCDEF.DLL' part. In desktop everything looks regular, but as soon we start to use mobile, he show all parameters... P.S: i've already see this link, including the solution from IIS, and doesn't work. Thanks!
-
HI Exe How to Load Forms in DLL? Code execution does not report exceptions, but the main interface does not display DLL forms。 Main Form Calls DLL Code procedure TfrmMain.UniButton3Click(Sender: TObject); var f: TCreateDLLFormAsChild; c: TControl; begin f := GetProcAddress(DLLHandle, 'CreateDLLFormAsChild'); if Assigned(f) then begin c := f(UniTabSheet1); end; end; DLL Form Creation Method function CreateDLLFormAsChild(parent: TWinControl): TControl; stdcall; var frmResQuery: TfrmResQuery; begin if not Assigned(frmResQuery) then begin frmResQuery := TfrmResQuery.Create(UniApplication); frmResQuery.ParentFont := False; frmResQuery.ParentWindow := parent.Handle; frmResQuery.Visible := true; frmResQuery.Left := 100; frmResQuery.Top := 100; Result := frmResQuery; end; end; exports CreateDLLFormAsChild;
-
Fala galera, estou iniciando no Unigui... Criei uma aplicação de exemplo e o dll ficou com 24Mb, quando eu for desenvolver mesmo, como fica isso? para os mais experientes aí, normalmente que tamanho se chega em média uma dll? Um abraço a todos!
-
Hi, Can someone explain what is the property ISAPIOptions -> AsyncMode, in Server Module ? I had a problem with ExportToFilter(quick report), then checking option to 'true', I solved this.
-
Hi, I'd like to call from a UniMobileApplication a UnimForm inserted in a DLL but, when I call it, I receive this error message: "Form Owner must be UniApplication" Someone can help me? Thanks. Example ***************************************** ** MyMobileApplication.exe ***************************************** program ApplicationServer; uses Forms, ServerModule in 'ServerModule.pas' {UniServerModule: TUniGUIServerModule}, MainModule in 'MainModule.pas' {UniMainModule: TUniGUIMainModule}, Mainm in 'Mainm.pas' {MainmForm: TUnimForm}, {$R *.res} begin ReportMemoryLeaksOnShutdown := True; Application.Initialize; TUniServerModule.Create(Application); Application.Run; end. unit Mainm; type TMainmForm = class(TUnimForm) UnimBitBtn1: TUnimBitBtn; private { Private declarations } public { Public declarations } end; function my_external_form ( UniApplication: TUniGUIApplication ): TUnimForm; StdCall ; external "c:\temp\my_dll.dll" ; implementation .. .. .. procedure TMainmForm.UnimBitBtn1Click(Sender: TObject); begin result := my_externat_form ( UniApplication ) ; end; ******************************* ** c:\temp\my_dll.dll ** ******************************* library My_dll; uses Mobile_form in 'Mobile_form.pas' {UnimForm1: TUnimForm}; {$R *.res} exports my_external_form ; begin end. ************************************ unit Mobile_form; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, uniGUIServer, uniGUIMainModule, uniGUIApplication, uIdCustomHTTPServer, uniGUITypes, Controls, uniGUIAbstractClasses, uniGUIClasses, uniGUImClasses, uniGUIForm, uniGUImForm, uniGUImJSForm ; type TUnimForm1 = class(TUnimForm) private { Private declarations } public { Public declarations } end; Var MyUniApplication :TUniGUIApplication ; function my_external_form ( UniApplication :TUniGUIApplication ) :TUnimForm ; stdCall ; function UnimForm1: TUnimForm1; implementation {$R *.dfm} function my_external_form( UniApplication :TUniGUIApplication ):TUnimForm ; Begin MyUniApplication := UniApplication ; Result := UnimForm1 ; End; function UnimForm1: TUnimForm1; begin Result := TUnimForm1 ( MyUniApplication.UniMainModule.GetFormInstance ( TUnimForm1 ) ); end; end.
-
Hi. Does anyone know a way to put unigui form in a DLL and call it from main application? I managed to build sample with exe calling dll and kinda creating unigui form but it fires exception "invalid property path MonitoredKeys.Keys" Thanks. UniGUI_DLLTest.zip
-
Good morning everyone! Anyone here in the group has had trouble in the generation of DLL in Delphi XE4? In 2010 he generates DELPHI corrretamente put the latest version of Delphi does not generate the DLL only. EXE. Below the figures. Att,