Jump to content

Soji

Members
  • Content Count

    35
  • Joined

  • Last visited

Everything posted by Soji

  1. Hi, I am looking for an easy option to set "version information" of multiple projects with in a project group at the same time. Is there any option already available wit the Delphi IDE? Going through each and every project and updating the version information for a particular build configuration is error prone and cumbersome. I have almost 75 projects in a project group. Don't want to click through each and every project and enter the version information for every release. Any best practices or suggestions to handle this situation? I use configuration manager to select a configuration to build all the projects in my development machine. (For release build I use a build server and MSBUILD) Kind regards, Soji.
  2. Thanks @emailx45. I started exactly with same idea sometime back. Then I found some issue when we upgraded Delphi version. The *.dproj file changed and my search and replace failed or did not work with different build configurations. I created a tool to search and replace build version at that time. Thanks for your detailed answer. Much appreciated.
  3. Thanks @Anders Melander. I was also not looking for any utilities. Try to find a best solution within IDE/projects itself.
  4. Hi, I am looking for a Delphi AES encryption/decryption library to decrypt a text which is encrypted using power-shell script. Another application encrypts a text using power-shell and put it into a file. My Delphi application has to read the file and decrypt the string. This is the power-shell script to encrypt ( Powershell encrypt and decrypt ). I want to mimic the function fAESDecrypt() in Delphi. Anyone knows any libraries which can do this? If there is nothing out there which can do it, I am thinking about executing the power-shell from Delphi to decrypt it. I think that should be possible. Thanks in advance, Soji.
  5. Thanks for all the inputs. CryptoLib4Pascal worked for me.
  6. @Kas Ob.: I spotted the same. Thanks for pointing it out. Yes. You have to use another package HashLib4Pascal from same authors. I use that package for PKDF2.
  7. I got an interesting message when I tried to upgrade my project from Delphi 10.3 to Delphi 10.4.1. It says I need to add "getit" package!. This is really a strange message. (There is no package named getit in my project group and I am sure I don't have any dependency to a package named getit.)
  8. Soji

    Delphi 10.4.1 upgrade

    Yes. That is right. I already "fixed" it. But it is really strange to say that I have to add "getit" right?
  9. We use an config file to store the database connection string. We are thinking about encrypting the connection string. Is there any best practices to keep the connection string information safe?
  10. It is a legacy application. Sustain mode. So looking for a quick solution.
  11. I have a legacy Delphi app which was running fine on windows server 2008. When the server updated to 2012, the app starts to have a paint issue. There are some big tasks running on a modal form (In main thread). It is big for/while loops. When those tasks runs, the main form turns black and some cases, the border turns white. The correct solution to this is to run the task in threads or use parellel library. But that is a big overhaul and that is not possible to do. I was looking for some quick fix to handle it and I used the following code snippet and it worked: PeekMessage(Msg, 0, 0, 0, PM_NOREMOVE); I have to do this everywhere in the code where big bloat is there. Is there any other solutions available?
  12. Yes. I was about to type the same. It is not same.
  13. I tried that comment. Did not work out well though 😒
  14. Thanks @Attila Kovacs. This is interesting. I will give a try. If I can make it work, then it avoids going through loop by loop and adding the peekmessage.
  15. Thanks for your response. Application.ProcessMessages is not a solution I am fond of. I wanted to avoid that and came into the peekmessage option. Yes. It is possible to move to thread. But it is a big overhaul and in sustain mode, it is not allowed to do that overhaul.
  16. Hi, We are trying to add the functionality to allow the user to change the SQL server password if it is expired. The following code snippet using TFDConnection shows what we are trying to do: FDConnection1.Params.Values['Server'] := 'SQLExpress'; FDConnection1.Params.Values['Database'] := 'TestDatabase'; FDConnection1.Params.Values['User_Name'] := 'testuser'; FDConnection1.Params.Values['Password'] := 'oldpass'; FDConnection1.Params.NewPassword := 'newpass'; FDConnection1.Open; But when we get an error while trying to change it: [FireDAC][Phys][ODBC][Microsoft][ODBC SQL Server Driver] Login failed for user 'testuser'. (Error Code is 18456) Tools we use: RAD Studio 10.2 FireDAC = 16.0.0 (Build 88974) Platform = Windows 32 bit SQL Server 2016 express edition ODBC Driver 17 for SQL server. What we observed is that if we use then it works with a patch in FireDAC units. (While debugging we found that it uses a method TFDPhysMSSQLConnection.CheckPasswordChange which uses a connection to check the SQL versions but by that time the connection was not able to make because of the password expiration. So we commented the code inside "CheckPasswordChange" and then it started to work.) But we are told to use ODBC Driver because Microsoft is not going to support Native Client in the future. Is it possible to change an expired password using FireDAC in combination with ODBC driver.? If that is possible then any advice to fix the problem mentioned above? Kind Regards, Soji Mathew.
  17. We are planning to update our version control system from Microsoft Visual Sourcesafe. We are looking for a free or paid Version Control System. When I look into the Delphi IDE, there are three options - Subversion, Git and Mercurial. We are in a dilemma which one to use. People who are using any of those Version Control Systems, please share your experiences. (Or something else out there which are very good to use)
  18. Soji

    PDF Encryption

    I have a requirement to encrypt a PDF file with password. Does anyone have experience doing this with any libraries? (I am looking for a free library at this moment.)
  19. Soji

    PDF Encryption

    I already downloaded that tried. But it seems like it can only generate the PDF. I haven't find anyway to load an existing PDF file and just encrypt it. I looked into the help/source and it looks like it is not possible to load an existing PDF file and make changes with that unit.
  20. Soji

    FireDAC - Change Expired Password

    Thanks Dmitry. We will try to update to latest Delphi and see if it works.
  21. Soji

    FireDAC - Change Expired Password

    You mean FireDAC can do with ODBC driver?
  22. Soji

    Hands-On Design Patterns with Delphi

    Does anyone already received the printed book?
×