Jump to content

Soji

Members
  • Content Count

    43
  • Joined

  • Last visited

Posts posted by Soji


  1. 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?

     


  2. Just now, stijnsanders said:

    You should check if synpdf can do it: https://github.com/synopse/SynPDF

    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.


  3. 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.)


  4. 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.


  5. 17 minutes ago, Gustavo Ricardi said:

    Just switched from Visual Sourcesafe to GitHub. Best decision ever! We use Git Kraken as  git visual interface. It softens the learning curve a lot and it’s the best tool we found to visually manage git. 

    👍

    I will explore Git Kraken. If we are moving to Git, we prefer a GUI.


  6. 23 minutes ago, Sherlock said:

    Subversion is nice and all, but just can't keep up with the young folks anymore. Why learn to move a two horse carriage, when you could be learning to drive a Model S? So if you consider moving to a different VCS, make the move count.

    🙂 

    Thanks for your suggestions and example links. Very helpful.


  7. 2 minutes ago, dummzeuch said:

    Have you and your coworkers got any experience with Git or Mercurial? If not, I stongly advise against those. They are distributed versioning systems and therefore very different from MSVSS (unless the latter has changed from when I used it) In addition to learn a new VCS you will also have to learn a new concept of VCS.

    Some of us has the experience with Git. But not all. For others it is a big learning curve for sure.

     

    5 minutes ago, dummzeuch said:

    Unless of course you have got a need for a distributed VCS, you all already know how to use Git or you want to use Git for other reasons (e.g. it "is the VCS that everybody uses").

    As of now there is no need for distributed VCS.

     

    6 minutes ago, dummzeuch said:

    I agree with @haentschman: Use TortoiseXxx rather than the integrated IDE support, in this case TortoiseSVN.

    Thanks for your suggestion. Will looking into SubVersion also.


  8. 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)

     

     

×