Quantcast
Channel: Recent Topics - Forum - Embarcadero Community - Embarcadero Community
Viewing all 3677 articles
Browse latest View live

Translating bpls using resource dll - by: Mika K3902

$
0
0
I have successfully translated .exe files using resource dlls and i'm able to switch translations at runtime.
But how to do it with .bpls which are statically loaded, is it even possible? We have some common parts of ours apps in .bpl's and they remain untranslated.


mika

Style bugs in TWinControl WMDestroy/Destroy - by: Geoff W10750

$
0
0
I was going to try and report the following in the "quality" portal, but it won't let me in. (After failing on my very old password, I reset it but still go.) It's all, also, as slow as a wet week - even trying to update my screen name here timed out. Never mind, I'll post here and maybe Embarcadero will notice and/or comment.
RAD Studio 10 Seattle - update 1 - Delphi / VCL.
TWinControl.WMDestroy has the following two lines of code:
  if ((sfHandleMessages) in TStyleManager.Flags) thenTStyleManager.Notification(snControlDestroyed, Self);
One result of this when using custom styles is that the style hook for the control is deleted when the window handle is being destroyed. If you have a style hook that results in a RecreateWnd (the control is NOT being destroyed, just the handle) call then the style hook object becomes invalid in the middle of its processing and an exception may result. (For example: I have a memo that changes its scrollbar settings depending on the text.)
Another interesting point to note here is that when you change styles all window controls are recreated - but the WMDestroy occurs after the style has changed. So if you change from a custom style to the system style the Notification never gets called (the system style does not have sfHandleMessages set). So all the control registrations (made automatically while the custom style was active) that the above code is intended to clear out, will remain in place. ... Which leads me to the next issue.
TWinControl.Destroy has the same two lines of code quoted above. And, because of this the same problem exists: if you've changed from a custom style to the system style the old control registrations remain in place. This means that when you close the application and the UnregisterStyleHook calls are made (either your own or those in class destructors in Vcl.StdCtrls) the processing leads to TStyleEngine.DoUnregisterStyleHook, which includes the line:
    if (LItem.Key is ControlClass) and (LItem.Value is StyleHookClass) then
Where LItem.Key is a reference to the no longer existing control. The results are predictable: exceptions while the application closes.
I wasn't sure whether to list the above as one problem or two, since they are so closely related.
For the first problem (style hooks deleted during RecreateWnd) my work around is to use a Detour to replace the TWinControl.WMDestroy with a version that omits the offending lines noted above (and calls DefaultHandler instead of inherited - which is not available in my class helper implementation).
For the second problem I wanted to remove the "if" line and just make sure the control was always removed from style registration, but I couldn't work out how to set up a detour for a destructor, so I used the following code:
type
TStyleEnginePrivateHelper = class helper for TStyleEngineclass procedure DoFreeControlHooks;end;
class procedure TStyleEnginePrivateHelper.DoFreeControlHooks;beginTStyleEngine.FreeControlHooks;end;
procedure FreeAllControlStyleHooks;beginTStyleEngine.DoFreeControlHooks;end;
I then have my application call FreeAllControlStyleHooks in the mainform destructor. This seems to work - because now all the UnregisterStyleHook calls have no invalid control references left to fall over. But it's not ideal, because any dynamic (non-shutdown) calls to UnregisterStyleHook may come across have the same problems, which makes me think that maybe I should also call my special function just before changing styles.

I am left wondering if I have missed something, since this seems a significant issue that I thought would have been noticed long before now (I've only recently started playing with styles). My large project uses lots of runtime packages and lots of custom control derivations, and I'm not sure if the order of the finalization calls plays any part in the errors I was seeing. So I remain open to the idea that I am doing something wrong - but those two lines in WMDestroy don't look right to me (given that they happen after the style has changed).

TLangs vs FMX Dialogs (Resourcestrings) - by: Zava

$
0
0
I am using the "Tlang" component for the translation of my App.

I'm not getting translating "Dialogs" FMX.
I can translate as "Consts" which are defined in "FMX.Consts" using the "TLang" component ?

custom handling of Authentication header - by: Ammar

$
0
0
I have an ISAPI datasnap server and I want to handle custom Authentication header values. The Server throws an EIdHTTPUnsupportedAuthorisationScheme error if the Authentication header is used for anything but Basic Authentication. I need to set/update TIdCustomHTTPServer.OnParseAuthentication to bypass this process. When I look in the Desktop test app I can do such a thing in the FormCreate

procedure TMainForm.FormCreate(Sender: TObject);

begin

FServer := TIdHTTPWebBrokerBridge.Create(Self);

FServer.OnParseAuthentication := MyDoParseAuthentication;//<--problem fixed

end;


but how do I do that in the ISAPI application?

DataSnap stand alone - by: Ammar

$
0
0
Creating a RESTful server and I am using the DataSnap stand alone for testing. When done I compile the ISAPI one and deploy to IIS. Is DataSnap stand alone should only be used as a testing tool? can it handle production environments?

Thank you

Delphi 5 ISO Needed -- Embarcadero Approved - by: BytePlayer

$
0
0
I am a registered user of everything from Delphi 5 -> Seattle and I have a project developed in Delphi 5 but when I migrated to my new computer I could find neither the serial number nor the Installation CD. Yes, my office is a disaster.
Christopher McDowell at Embarcadero suggested I post here and ask whether anyone has an old Installation CD that they could zip and send to me along with the serial number. This is completely legitimate and above board because users of Seattle get free use of all previous versions... but their official downloads only go back to version 7.
If anyone can get this for me, you would be a life saver and if you want to verify this with an official Embarcadero rep before doing this, you can email Christopher by just putting a period between his name and adding @embarcadermo.com.
Thanks in advance for any help!!!!

Personal Loans – modest weight less fund - by: Samuel Richard

$
0
0

[size= 9.0pt; font-family: 'Arial','sans-serif'; mso-fareast-font-family: 'Times New Roman'; color: black]While considering taking an individual loan, each borrower needs it to be simpler to reimburse furthermore the moneylender representing no obstacles. Secured individual loans guarantee such borrowings with bunches of focal points connected. These loans offer required sum for individual purposes like home enhancements, purchasing another or utilized auto, getting a charge out of a long occasion visit, binge spending on a rich wedding party, obligation union and so on.

Secured individual loans endorsement comes against the borrower's esteemed resource like home as guarantee. On the back of taking insurance, banks give secured individual loan at www.ipaydayloansontario.ca lower rate of premium, which makes these loans genuinely less demanding to reimburse. Those with brilliant or great record as a consumer get the loan at further brought down rate.

The loan sum under secured individual loans relies on upon guarantee esteem. so a home as security guarantees more prominent measure of loan while lower sum comes against less esteemed property. In addition invaluable is that secured individual loans reimbursement length is advantageously suited to each sort of borrower. These loans can be reimbursed in 5 main 30 years relying upon loan sum and individual circumstances of the borrower.

Awful record as a consumer of a borrower is rarely an obstacle in taking secured individual loans. This is on account of borrower has officially made the loan more secure for the bank by giving insurance ipaydayloansontario.ca. Still, check your credit report for any blunder and know your FICO assessment as this will help in finding a suitable arrangement.

Best Practices in Team Development - by: Art P10841

$
0
0
Normally, when we've done team development we've been able to isolate the back end code and team members are able to write test modules to test the back end code along with their additional code that they are working on. In this case, we've had a single person who has been in charge of interface work and plugging the back end code into the front end interface.
However, I have a project where the bulk of the code is going to be interface work. What is the best way to divide up modules and to allow team members to be able to work on and test their modules? As I see it, with the interface code, there are a lot more interdependancies and it is a lot harder to isolate the work of any individual team member.
Thoughts?

Cannot debug Galaxy S6 Android 6.1 - by: Geovs P10858

$
0
0
I cannot debug a Delphi XE8 application on Android 6.1
It works fine on two Android 5 devices (Galaxy S5 and Xperia Z2) but not on an S6 which has now upgraded to Android 6.1 but I don't know whether it debugged on 6.0
I have the Delphi XE8 InternalOnly option set and developer mode and USB debugging enabled on the phone.
I have a error since updating to 6.1 and need to track it down.
Any help please?

tfdstoredproc not working correctly - by: digioia G5331

$
0
0
Hi,
I have a problem with the management of a tfdstoredproc.
if launched more times consecutively fields are not updated , and keep the name and the previous value .
How can I have the fields updated with the new values ​​?

Code below:
1) get_ricerca.Active := FALSE;
get_ricerca.Connection := Atable3.Connection;
get_ricerca.Params.Items[1].Value := 'table1';
get_ricerca.Params.Items[2].Value := ' COD_ART ';
get_ricerca.Params.Items[3].Value := '';
get_ricerca.Params.Items[4].Value := '';
get_ricerca.Params.Items[5].Value := '';
get_ricerca.Params.Items[6].Value := '';
get_ricerca.Params.Items[7].Value := comodo2;
get_ricerca.Active := TRUE;

2) comodo2:=.........new value;
get_ricerca.Active := FALSE;
get_ricerca.Connection := datamodule2.database;
get_ricerca.Params.Items[1].Value := 'table1';
get_ricerca.Params.Items[2].Value := ' * ';
get_ricerca.Params.Items[3].Value := '';
get_ricerca.Params.Items[4].Value := '';
get_ricerca.Params.Items[5].Value := '';
get_ricerca.Params.Items[6].Value := '';
get_ricerca.Params.Items[7].Value := comodo2;
get_ricerca.Active := TRUE;

The result of the second script is not updated it remains only the field COD_ART.

Thank.
Best regards
Giuseppe

Embarcadero Seattle
Windows 8.1
Microsoft Sql Server

ListView Dynamic - by: Eduardo Zavarize INICIATIVA

$
0
0
Hi!
How assign value to ListView type Dynamic ( Berlin 10.1 ) in run-time ?
I need only an example.
thank you

BDE Installer fro 10.1 Berlin - by: James W10894

$
0
0
Was the bde installer pulled? I can see that it has a download entry (30522), but I can't access it (and have a valid upgrade subscription.) I can't migrate some of my components without that.

Using xmmintrin.h - __SSE__ not defined - by: Calvin C4769

$
0
0
What compiler switch do I need to set to enable use of SSE? As is, xmmintrin.h exits because __SSE__ is not defined.

Thanks,
Calvin

Rad Studio XE5 Installation Corrupts Borland 2006 - by: Brian B10755

$
0
0
I have a 32 bit Windows 7 OS on my computer. I have been using Borland 2006 C++ Compiler for years. Yesterday I loaded Rad Studio XE5 onto the same computer. Now Borland 2006 IDE will no longer open old projects. When I try to open an existing project I get the error "Personality CPlusPlusBuilder.Personality is required to load project and is not loaded". I tried doing a repair on the Borland 2006 installation, but it made no difference.

Installation of 10 seattle - by: Pedro R2956

$
0
0
Is there a way to verify that the installation is complete and sound. I install Berlin and it broke FastReport in 10 Seattle.
I removed it but don't if Seattle 10 is intact.

Ribbon controls - by: Rimvydas P10991

$
0
0
Could not find Ribbon controls in Delphi 10.1 Berlin!

Embaracdero should add Swift - by: Mark P1836

$
0
0
Now that Swift has been open sources, Embarcadero should add it to the languages available in their compiler set. It is a uch more modern language than object pascal, more able to do functional programming, better in a number of ways. I move between both, and when I started learning Swift, it had a number of features that I had wished for in Delphi, which I love and have been using since beta (1995).
Regards
Mark

IOS 64bit IPA file size - by: ryno C2313

$
0
0
Hi when deploying my IOS app to my mac the IPA file size is 87.3mb - After I publish the app to the iStore, Apple sends me a warning telling me that after they do some stuff it will be larger than 100mb and will only allow users to download it over wi-fi. It's quite imperative for me that my app stays below 100mb so that users can download it via mobile connection Now - I've done some things that in my mind that should have decreased the app size but to no real avail
  • Compressed all the images I use in the app (combined size of all the images is less than 3MB - including splash screens and launcher icons)
  • Removed all unnecessary references to units (cleaned up the "using" sections)
  • Removed all design time components that can be instantiated in code
    • I'm not using livebindings
    • I am using Firedac with SQLite (the database is less than 1MB)
The APK file size is 43 mb which is well below the 50mb max google wants it Any help or advice in getting the Apple IOS IPA file smaller would be great Thanks
Please check the SO for additional info
stackoverflow.com/questions/36788774/ios...ile-size-compression

Can not find Tribbon after delphi 10 installation - by: Yossi Mazal-Tov

$
0
0
i just install trail version of the delphi 10 derlin
i can't find the tribbon.
how can i install the missing components

Save project. - by: Marcin C11085

$
0
0
hello.
I have one question. Becouse if I'd like open my project I must open ../Win32/Debug/Project1.
It's possible to save project in one file , with extension .exe (portable version)?
Viewing all 3677 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>