Jump to content

Vandrovnik

Members
  • Content Count

    523
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Vandrovnik

  1. Vandrovnik

    Connection string encryption

    Soji wrote "legacy application", I think it is not a mobile app, but a desktop one, which connects directly to a database.
  2. Vandrovnik

    Connection string encryption

    Hmm, and this API service will have to store password for the database somewhere... And his original application will have to store password for the API service somewhere, so now he has to store two passwords 🙂
  3. Vandrovnik

    Delphi Rio IDE hangs again and again

    If you had to power off the computer, I would suspect hardware. While I do see frozen IDE +- two times a week, I have never to reboot PC - it is enough to run Task Manager and kill BDS there. Did you move some components from the old PC to the new one? Harddisk? Network card...?
  4. I have usually seen a WOL-related checkbox also on the tab "Power Management", but when it works now, it probably does not need to be touched 🙂
  5. About Wake on LAN: I have not seen PC without WOL support for at least 15 years... But as far as I know, in Windows, WOL must be enabled in network adapter's properties.
  6. Vandrovnik

    THostName delphi seattle

    I use IBX components to connect to Firebird. In 64-bit version of my application, it loads client library from ibclient64.dll (it is defined in IBX.IBHeader.pas). Client library must be 64-bit. Client library may need other DLLs (such as MSVCR100.dll...).
  7. Vandrovnik

    Exception.CreateFmt vs. CreateResFmt

    "fairly easy" 🙂 In VirtualProtect calls, hard-coded value "4" - isn't it better to use sizeof(pointer) instead, so that it is safe in 64-bits too? Or this code is for 32-bits only?
  8. Vandrovnik

    Frequent compilation errors

    There is a switch in Option - you can try, whether it makes any difference: "Optimization in source code file access for large projects through a unit cache, particularly when residing on remote drives. The feature is controlled by a new IDE option at Tools > Options > IDE > Compiling and Running > Enable unit directory cache, and is on by default. " What about an antivirus? Years ago at school sometimes antivirus started to scan a file, locked it, and some applications complained about the file being inaccessible... It was always on a network drive.
  9. Vandrovnik

    Could not load OpenSSL library.

    Does OpenSSL DLL depend on some other DLL(s)?
  10. Vandrovnik

    Feature: ParentFont? Yes, but...

    I remember how long it took me to change the old "MS something" to "Tahoma", because all bold/colored labels had ParentFont=false. So yes, I think this would be useful.
  11. Vandrovnik

    Stop IDE from writing unit names all by itself ?

    May be it will be easier to define empty System.Actions unit for Delphi XE than to fight with Delphi RIO (put it in a directory, where XE will search, but RIO will not).
  12. Vandrovnik

    Generics and Classes on Windows 2000 = OOM

    New versions of compiler may use new functions in Windows API, that are not present in Windows 2000. So application will start and then complain about missing something (or start and immediatelly die silently).
  13. Vandrovnik

    Set a PC environment based on a Country name..

    And what data type do you use? https://en.wikipedia.org/wiki/Year_2038_problem
  14. Vandrovnik

    ANDROID64 Conditional compiling

    Is there a way how to obtain all defined symbols (like ANDROID, DEBUG etc.) and have them displayed during compilation? It would be nice if we put something like {$ShowDefinedSymbols} in source file and defined symbols would appear in messages from the compiler...
  15. Vandrovnik

    tMainmenu, imagelist, high-dpi

    Hello, see https://community.idera.com/developer-tools/b/blog/posts/new-in-rad-studio-10-3-high-dpi-image-list-for-windows K.
  16. Vandrovnik

    Squint and read: CreateFormFromStings

    They could create method with correct name and for some time keep the bad one in place too, just marked as deprecated... Just if there were a will to fix things.
  17. Vandrovnik

    How should I organize cross platform code?

    But in the reality it is sometimes like this (taken from Emba example Mobile Snippets\ShareSheet) : uses {$IFDEF ANDROID} Androidapi.Helpers, Androidapi.JNI.JavaTypes, Androidapi.JNI.Os, {$ENDIF} FMX.DialogService; {$R *.fmx} {$R *.LgXhdpiPh.fmx ANDROID} procedure TShareSheetForm.FormCreate(Sender: TObject); begin {$IFDEF ANDROID} FPermissionCamera := JStringToString(TJManifest_permission.JavaClass.CAMERA); FPermissionReadExternalStorage := JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE); FPermissionWriteExternalStorage := JStringToString(TJManifest_permission.JavaClass.WRITE_EXTERNAL_STORAGE); {$ENDIF} end;
  18. Vandrovnik

    What is the best way LoadFromFile & Thread? (FMX)

    I think loading bitmaps can be run in a thread: http://docwiki.embarcadero.com/RADStudio/Rio/en/Multi-Threading_for_TBitmap,_TCanvas,_and_TContext3D
  19. Vandrovnik

    Getting/Restoring Column Width in TStringGrid with FMX

    I have two monitors, but normaly work on VCL apps. FMX is new for me. Livebindings windows - ehm, I am glad that I almost do not need it; I just connected whole tStringGrid to tIBQuery or tIBDataSet and then edited columns. Now I hope that I will never have to open the Livebindings window again, because it probably would need more than just two monitors 🙂
  20. Vandrovnik

    Getting/Restoring Column Width in TStringGrid with FMX

    Apologies accepted 🙂 grZbozi is just an instance of tStringGrid on my form in the app, from which I have copied that example. So if you put a tStringGrid in your project, it will probably be StringGrid1 instead. In my form, there is declared grZbozi: tStringGrid;
  21. Vandrovnik

    Getting/Restoring Column Width in TStringGrid with FMX

    And do you need the widths immediatelly after the column resize happens? If not, you can read and store column widths in tForm.OnClose.
  22. Vandrovnik

    Getting/Restoring Column Width in TStringGrid with FMX

    Well, in your question, you wrote "TStringGrid to be used with the new projects.". So my answer was for tStringGrid, unfortunatelly I did not clearly write it in my answer and I have already apologized about it. So when you are using tStringGrid, it has indexed property Columns. Each column has property Width. I believe that with this information you can set width of columns (I am using it and it works) and probably you can also read current widths of columns (which I do not use). Try to google FMX TStringGrid Columns.
  23. Hello, I wanted to call tDictionary<>.SetCapacity prior to adding items to it, so that there is no need to re-hash items. Unfortunatelly, tDictionary<>.SetCapacity is private member. Why? Is it an intention, or a bug? Probably there is a way how to access even a private method...? Kind regards, Karel
  24. Vandrovnik

    tDictionary<>.SetCapacity

    Thank you, I have never noticed that I can pass the capacity to .Create...
  25. Vandrovnik

    Getting/Restoring Column Width in TStringGrid with FMX

    grZbozi is instance of tStringGrid, sorry for not writing it in my last reply. a is column index 🙂
×