Jump to content

David Heffernan

Members
  • Content Count

    3745
  • Joined

  • Last visited

  • Days Won

    188

Everything posted by David Heffernan

  1. David Heffernan

    Please need help for some java lines program to Delphi

    What specifically do you mean by "help me translate"
  2. David Heffernan

    Remote Delphi developer position

    6 month contract and you have to jump through all these hoops. It's a seller's market right now.
  3. David Heffernan

    Remote Delphi developer position

    Staggering that an employer could post something as demeaning as this.
  4. David Heffernan

    Unable to run 2 TPythonEngine per VCL application

    Next release of Python supports per interpreter GIL which sounds exciting.
  5. David Heffernan

    FileOpen a network file

    Well, there will be an error code. You have to retrieve it.
  6. David Heffernan

    FileOpen a network file

    When you tried this, what happened? What error was reported. Or was there no error reported?
  7. David Heffernan

    FileOpen a network file

  8. David Heffernan

    New Code Signing Certificate Recommendations

    This is precisely what I am doing. My Python build code to perform signing starts like this: def Sign(filename, sdk=None): # see https://medium.com/@joshualipson/ev-code-certificates-automated-builds-for-windows-6100fb8e8be6
  9. David Heffernan

    FileOpen a network file

    It doesn't look like that to me. It looks like a file read for a file named by UNC. I don't think I'd be wanting to use FileOpen anywhere ever. Shouldn't you be using streams these days? Having said that of course, FileOpen still works. You didn't tell us what happened when you used the old code. If you have a problem that you want some help with, then you should say what the problem is. People can't offer solutions to problems that aren't described. Do you understand what \\IP_address\FolderName\Filename is? I trust you do, and that the file specified by this UNC path is available on your current target device. Is it?
  10. David Heffernan

    How to compare performance between Delphi versions?

    For the record this is completely wrong
  11. David Heffernan

    Convert project c# to pascal

    You said a C# project. Anyway, why don't you do this work yourself?
  12. David Heffernan

    Convert project c# to pascal

    That will maybe buy you 30 minutes of a qualified person's time.
  13. David Heffernan

    Convert project c# to pascal

    Hire a programmer
  14. David Heffernan

    Returning a string from a bpl

    That's not quite enough. Do the exe and bpl both link to the same runtime packages?
  15. David Heffernan

    Returning a string from a bpl

    This will work fine so long as everything is linked correctly. No need even to use stdcall. So probably the linkage is messed up. We can't see the entire picture.
  16. To cast to PByte then it's PByte(myPointer)
  17. No idea what type myPointer is. A simple 10 line program would reveal all.
  18. David Heffernan

    DCPCrypt v.2.0 - 64-bit?

    Code is utter shite anyway. Just cast @InData to PDWORD and use pointer arithmetic already. I would imagine that FixInsight would give the warnings you want.
  19. David Heffernan

    DCPCrypt v.2.0 - 64-bit?

    Every time you cast a pointer to a 32 bit integelral value, you are truncating. This is 64 bit porting 101. longword(@InData) That's truncation.
  20. David Heffernan

    Playing with Windows Fibers by emulating Python Generators

    I thought they'd been removed because they weren't useful. They were added for SQL server and in the end it turned out they weren't useful for that application.
  21. David Heffernan

    EXE Speeds: Delphi vs. FPC?

    I'm baffled. Both of these statements are wrong. Delphi is known to be produce very poor and inefficient code. Although I'm not qualified to comment on FPC's code gen.
  22. David Heffernan

    Can I use managed C# DLL in unmanaged Delphi application ?

    Yes. Probably the easiest way is with UnmanagedExports but it can also be done with COM. You may need to create a wrapper C# DLL to bridge the interface.
  23. David Heffernan

    Remove quotes from a string

    Looks like your json parsing code is wrong but you didn't show any code. Very hard for us to say what's wrong with your code when we can't see it. Don't be shy.
  24. Exactly. Why reinvent the wheel? And if you absolutely had to implement VPN in Delphi code, then hire an expert that has implemented VPN before.
  25. David Heffernan

    "Incompatible parameter lists" when using Types.T*DynArray?

    Using TArray<T> is better because it doesn't have type compatibility issues like this. It makes it easy for different libraries to interop. Because the different libraries don't need to know about each other and declare types in a shared unit.
×