Jump to content

David Heffernan

Members
  • Content Count

    3711
  • Joined

  • Last visited

  • Days Won

    185

Everything posted by David Heffernan

  1. David Heffernan

    How to set TBytes array to the file size ?

    The size of the file is AFile.Size. You read the entire file into a byte array, but then go at the same stream with a binary reader. There are so many mistakes here. Do you want to read it into a byte array and covert to string. Or do you want to read it as binary.
  2. David Heffernan

    tImageCollection in COM DLL - EXE needs manifest ???

    For example this 10 year old answer has example code https://stackoverflow.com/a/5133222/505088 I think I've made a few minor improvements to this over the years, but the code here works fine.
  3. David Heffernan

    tImageCollection in COM DLL - EXE needs manifest ???

    Well you likely will break the existing app. It's easy to do what I described.
  4. David Heffernan

    tImageCollection in COM DLL - EXE needs manifest ???

    Not if the comctl v6 manifest hasn't been activated in your thread. You'll have comctl v5.8. You need to activate the comctl v6 manifest whenever your DLL is called and deactivate whenever it returns. Every function should activate on entry, deactivate on exit. I do this in my Excel com add in.
  5. Pictures or icons? Kind of a big difference.
  6. David Heffernan

    Opinions about Pascal vs C/C++ IDE

    Er, C handles floats fine, better than Delphi as it happens. Ha ha
  7. David Heffernan

    Opinions about Pascal vs C/C++ IDE

    There's never been any point in using anything other than C to write device drivers on Windows or Linux. It's not like you can take advantage of OOP in the context of a device driver.
  8. David Heffernan

    Opinions about Pascal vs C/C++ IDE

    That's a tool chain limitation rather than language though.
  9. David Heffernan

    Wordpress to Firemonkey

    Hard to see how REST could achieve that. You likely need to find a programmer.
  10. David Heffernan

    Wordpress to Firemonkey

    What does convert WordPress into Firemonkey app actually mean. Can you give more detail.
  11. David Heffernan

    Delphi 11, migrate or wait

    Yeah, you can't jump back in can you. You have to start again from scratch.
  12. David Heffernan

    Delphi 11, migrate or wait

    Based on historical experience this seems wildly optimistic!
  13. David Heffernan

    Delphi 11, migrate or wait

    It's really for you to decide. You have to test your app. We can't know what issues you will face. The big question to ask your self is what are the benefits and do they out weight the downsides which are primarily risk of new defects.
  14. David Heffernan

    DUnitX: How can I load HTML files within unit test?

    You need a mock. There are lots of mocking frameworks around. Are you using one?
  15. David Heffernan

    Long term availability of Community Edition

    If anybody can tell us about the long term availability of the community edition would they also be so kind as to tell me about the long term availability of me.
  16. David Heffernan

    Interesting way to copy dynamic arrays.

    What would be nice would be if Emba could add a MakeUnique(arr) so that you could write code like with with clear intent
  17. David Heffernan

    Interesting way to copy dynamic arrays.

    Why would that be different?
  18. In fact, when you put 1.025 into a double precision variable, what is stored is the closest representable value to 1.025 which happens to be 1.024999999999999911182158029987476766109466552734375.
  19. Isn't your problem simply that you are using wrong type. You should be using a decimal type.
  20. If you want to build a VCL app then you need to fit into the framework. The main form is the first one created by a call to Application.CreateForm. Can be valle anything. Does not need to be Form1. You can create other forms before the main form if you want. The outer begin/end block in the dpr file is the effective entry point. You arent going to have immutability with VCL controls. If you want immutability, look elsewhere. Are you building a GUI app?
  21. David Heffernan

    Hot Reload in Delphi?

    Logging allows you to avoid the part where you repeatedly start up and navigate to the point of interest.
  22. David Heffernan

    Hot Reload in Delphi?

    I guess you already use logging to save time. One thing that I hanker after is a reversible debugger, where you can step backwards. Tricky to implement I am sure.
  23. David Heffernan

    Simple FFT

    I just use lapack for fft, seems not much point in trying to create yet another implementation
  24. David Heffernan

    Delphi on Windows 11 on MacBook Pro 16 (2021)

    Because the computer has ARM processors would seem like the obvious reason
  25. David Heffernan

    Library to get user, computer info

    Not such much on Linux
×