Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 06/01/23 in all areas

  1. No. It is a remnant from Delphi's pre-Unicode days (going all the way back to Delphi 5, if not earlier). Even then, I question why it was ever added in the first place, since the API always returned the correct sizes to begin with. So, this will cause the caller to unnecessarily waste memory (if they enumerate subkey/value names afterwards) and should be taken out. Yes. The increment is not necessary. I have filed a bug report: RSP-41787: TRegistry.GetKeyInfo() doubles size of MaxSubKeyLen and MaxValueLen
  2. Osama Ghazal

    Good book about FireDAC

    Hi All, is there is any documentation or books for firedac that help me to upgrade my knowledge? I look for FireDAC in Depth, but I found the most topics on fdmemorytable, and there is nothing deep. and the Embarcadero documentations and samples are very bad and complex, there is no explains enough. I have recordesd many videos on youtube and I feel that I am not strong enough in FireDAC. so, what is the solution?
  3. So this is just a private protocol, not really REST. Commonly, textual responses are followed by CRLF, that may be what the client is expecting. Angus
  4. Fr0sT.Brutal

    Setting & Usage of TFormatSettings..

    Data display => locale-dependent Data exchange => hardcoded
  5. @Attila Kovacs All Windows versions from Windows NT up to the current have Win32Platform = VER_PLATFORM_WIN32_NT. Other possible values are Win32s and Windows 95.
  6. Dalija Prasnikar

    Setting & Usage of TFormatSettings..

    If that is the requirement, then, yes, setting global FormatSettings variable will have that effect. You also need to change Application.UpdateFormatSettings to false, before you change global FormatSettings to avoid user changes to be applied if the application is already running. You also need to keep in mind that any code that does not use global FormatSettings will not be affected by changes in global variable. For instance Delphi JSON serialization uses fixed settings for serialization that are based on JSON format requirements. Any code that uses own settings will behave in similar way. I would still suggest that for serialization purpose and data persistence, you use separate FormatSettings variable as if (and when) specification changes and users are allowed to have their preferer format used for viewing purposes, it will be very hard to make separation afterwards and find all the places that need to use specific fixed format.
  7. maXcomX

    Bitmaps2Video for Windows Media Foundation

    In that case assign the buffer to nil (which is silence) and try again. However an av will never happen unless the API is wrong translated or when you use sloppy code. You will always get an HResult when something goes wrong.
  8. Osama Ghazal

    Good book about FireDAC

    I talked about it, not many peoples says that it is deep and it not cover a many topics, only few
  9. David Heffernan

    Have any of you worked with Visual C++?

    I'd say C++ is definitely not suited to this programming.
  10. maXcomX

    Bitmaps2Video for Windows Media Foundation

    Checking the results of the media foundation methods is as easy as can be. The results will give you information about what went wrong in most cases. So, the standard exception handling in Delphi is not suitable and therefore you have to write our own exception handlers, because each hresult code is described in WinApi.WinError.pas or WinApi.MediaFoundationApi.MfError.pas and will exactly return what went wrong. Media Foundation and related API's are not part of the Delphi distributions from Embarcadero, and if they are, they are outdated in most cases. The Microsoft documentation explains the retuned values of the API methods very well.
×