Jump to content

David Heffernan

Members
  • Content Count

    3586
  • Joined

  • Last visited

  • Days Won

    176

Everything posted by David Heffernan

  1. David Heffernan

    CPas - C for Delphi

    Distributing DLLs with an exe is really very trivial. Either in the same directory as the exe or a sub directory as an assembly using manifests. Linking .obj files to an exe is a tricksy business. You need to supply the C RTL and for complex libs that is often very hard to achieve. And then on x64 you have the longstanding bug that the Delphi compiler doesn't pick up pdata sections with the exception tables. So exceptions in the C code can just terminate the process.
  2. David Heffernan

    CPas - C for Delphi

    Often because of dependencies on 32 bit code. Like how the Delphi IDE is. Personally I think could drop 32 bit support now and my customers would be fine with it.
  3. David Heffernan

    CPas - C for Delphi

    I tend to use msys2 to build such libraries. Generally very simple to get it built.
  4. David Heffernan

    CPas - C for Delphi

    So it's more geared towards looser coupling, a more scripting like approach. I guess if I know the external code I want to use at compile time then linking to a DLL in the classic fashion is generally preferable.
  5. David Heffernan

    CPas - C for Delphi

    Would be nice to know what's actually going on here, but all I can see is an opaque DLL which seems to have all the implementation in it.
  6. Start by reading the error message and thinking about what it means. Then look up the documentation for the error message. Don't give up so easily. Just because you made a mistake, don't assume that you can't solve it yourself. Think harder. Keep trying.
  7. That message is clear. At least it is clear to me. Do you understand it. It's very hard to express this without sounding mean, but you aren't going to succeed in your goals without first getting the appropriate tools. Which in this case means more programming skills. You said yourself that these are lacking. Stop trying to solve problems that are beyond your current capacity, and start seeking to gain the skills you need.
  8. David Heffernan

    docwiki.embarcadero.com is not working

    No, this isn't business as usual. The broken docwiki is not because they are improving it. I know that they are working on a new system, but the old one broke on its own accord. At least that's what I understand from a PM from Marco.
  9. Not sure about the exception swallowing here
  10. Combine can mean many things. Realistically though, if you want to do programming, you can't avoid gaining the skills necessary.
  11. David Heffernan

    docwiki.embarcadero.com is not working

    I can't see a joke here. Maybe I should just mute the topic because there is nothing more to say.
  12. David Heffernan

    docwiki.embarcadero.com is not working

    It isn't the case. Why are you speculating on something about which you have zero information?
  13. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    No doubt I can get the information about the nested exceptions using ME code. I solved my problem a different way that was actually a bit more elegant and avoided the complexity of nested exceptions anyway.
  14. David Heffernan

    Generic sort of several "parallel" arrays?

    Is this telling you is that your data structure is wrong? What you need is a record with the 4 values and then array of that record. Then basic array sort with custom comparer gets it done. Then again, perhaps you so need direct access to contiguous arrays of each of the 4 scalars. As stated you really need a sort algo that allows you to provide both comparer and exchanger. I had such a thing once. The final approach is not to modify the arrays at all. Create an integer array with values from 0 to N-1 and then sort that using the x values to determine the order. Have the compare function return CompareSingle(x[idx[left], x[idx[right]])
  15. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    In Pascal code Exception.InnerException is never assigned.
  16. David Heffernan

    Is a "bare-minimum" EurekaLog possible?

    Just trying to use inner exceptions in my own project (which has madExcept) and also feeling the pain .....
  17. David Heffernan

    docwiki.embarcadero.com is not working

    It's amazing how low expectations have become. "It sometimes works, sort of, if you refresh the page a few times" "You might get better results by spoofing your IP with a VPN"
  18. David Heffernan

    docwiki.embarcadero.com is not working

    Perhaps they don't know it's broken?
  19. David Heffernan

    docwiki.embarcadero.com is not working

    Imagine not being able to get your company's website up and running again after more than a week? What an absolute joke. I guess I'll go and find my old Delphi 6 printed language guide to look up the info I can't find online rn.
  20. David Heffernan

    A book about Object Pascal Style Guide

    Sure, if you decide that all things must be called "value", then life is tough. But why make things so difficult?
  21. David Heffernan

    A book about Object Pascal Style Guide

    I have to say that I have never understood why args get prefixed with A and why local variables get prefixed with L. Upper or lower case. I just don't see the benefit.
  22. Nope, you are wrong. There's a window behind that TStrings.
  23. David Heffernan

    Preprocessor

    Writing a pre-processor to handle conditionals should be quite straightforward. I doubt that there exists the pre-processor that you describe.
  24. David Heffernan

    A book about Object Pascal Style Guide

    Collaboration requires somebody to coordinate it, which in this case would need to be the author.
  25. David Heffernan

    Enhanced messageboxes

    No. You just read the Win32 docs and off you go.
×