-
Content Count
3586 -
Joined
-
Last visited
-
Days Won
176
Everything posted by David Heffernan
-
Passing back a string from an external program
David Heffernan replied to dummzeuch's topic in Windows API
No. Because there is no DllMain and so nothing is initialized. And then there are the lack of relocations. What's wrong with Delphi programmers. Read the standard output already! -
Passing back a string from an external program
David Heffernan replied to dummzeuch's topic in Windows API
Nope, that doesn't work. You can't expect to load an exe file with LoadLibrary. Also, even if you could, don't go exporting string across a module boundary. I'm astounded at all the posting here for a trivial problem with a standard solution. -
VCL-styled Popupmenu issue if imagelist is assigned
David Heffernan replied to aehimself's topic in VCL
The most reliable way to avoid the legion of bugs with this feature -
Regarding a fix, this is only one of a number of problems with scope resolution in the language. Same issue arises when you use units, where more recently imported symbols hide those from units imported earlier. Same for local variables and methods. Same for local variables and global symbols. Anywhere where you refer to a symbol and there are multiple matches then the compiler chooses the most recent. In princple the resolution is simple. Introduce a new compiler warning whenever the compiler uses this most recent principle.
-
Debugging was never the issue. That was just annoying. Refactoring was never the issue either. That also is annoying but one of many broken aspects of the refactoring. The issue is the silent bugs that arise when you add a field to a type and that one hides local variables. This has been discussed hundreds of times. Try some more websearch. Then, stop using with.
-
Editor for Memo (String) property
David Heffernan replied to chkaufmann's topic in Delphi IDE and APIs
Don't you just declare the property as TStrings? Use its Text property when you want a string representation including line feeds. -
madSecurity, Are There Any Alternatives?
David Heffernan replied to msintle's topic in Delphi Third-Party
I am defending a very important, and very well respected, member of the Delphi community. That's all. -
madSecurity, Are There Any Alternatives?
David Heffernan replied to msintle's topic in Delphi Third-Party
In defence of Mathias his madExcept library is superb and very actively maintained. And his response to your comments in the thread seem reasonable. Why expect him to work on freeware? Anything he does is a bonus. It looks like your frustration is getting the better of you. -
Conceptual - callbacks that are called from background thread
David Heffernan replied to Fr0sT.Brutal's topic in Algorithms, Data Structures and Class Design
There are simply some rules of use for certain types of library that cannot be enforced effectively by the compiler, or even by runtime checks. For these rules you need documentation and developers that are prepared to read documentation. My personal view is that if a developer is not prepared to go to the trouble of reading the documentation, then any problems they have are their concern and not that of the library developer. -
IDE adds {$R} between units
David Heffernan replied to John Kouraklis's topic in Delphi IDE and APIs
Can you show a minimal dpr file and tell us which version of Delphi you use. -
Passing back a string from an external program
David Heffernan replied to dummzeuch's topic in Windows API
It really is -
[out] and [in] in records
David Heffernan replied to efortier's topic in RTL and Delphi Object Pascal
Where are the attributes defined? -
64-bit type libraries still not supported by the IDE ?
David Heffernan replied to A.M. Hoornweg's topic in Delphi IDE and APIs
Posting here is not going to have any impact on development of the Delphi IDE by Embarcadero. You would need to submit a QP report, although I guess at least one already exists. I assumed that your post was driven by a desire to get something done. Which can only be to import some actual type libraries. Hence my comments. -
Google Play Store - request extension for Delphi apps
David Heffernan replied to Darian Miller's topic in Cross-platform
Choosing a better tool for mobile development is surely an option -
Passing back a string from an external program
David Heffernan replied to dummzeuch's topic in Windows API
https://stackoverflow.com/q/19054789/505088 https://stackoverflow.com/q/19054789/505088 -
64-bit type libraries still not supported by the IDE ?
David Heffernan replied to A.M. Hoornweg's topic in Delphi IDE and APIs
You can locate the library and run the typelib importer on it using the command line tool. The format is the same for 32 and 64 bit. The issue is just that a 32 bit process doesn't see the 64 bit registry. But once you pass the 64 bit com dll to the type lib importer it will be fine. Often you just import the 32 bit version of the COM dll and the same import unit works for both. -
64-bit type libraries still not supported by the IDE ?
David Heffernan replied to A.M. Hoornweg's topic in Delphi IDE and APIs
There are plenty of command line tools for this. -
Relaxed JSON
David Heffernan replied to John Kouraklis's topic in Algorithms, Data Structures and Class Design
I don't think that toml is widely used, although I admire its goals. I also believe that it has some limitations. And I don't think there is a Delphi parser for it. -
August 2019 Roadmap released
David Heffernan replied to Darian Miller's topic in Tips / Blogs / Tutorials / Videos
I expect that's exactly what happened, many times, but the money people decided otherwise. -
Relaxed JSON
David Heffernan replied to John Kouraklis's topic in Algorithms, Data Structures and Class Design
Yeah, seems pointless. Use YAML if you want more readable files. -
Conceptual - callbacks that are called from background thread
David Heffernan replied to Fr0sT.Brutal's topic in Algorithms, Data Structures and Class Design
Documentation is always an option. Don't rule it out. -
parsing Google search results
David Heffernan replied to David Schwartz's topic in Network, Cloud and Web
Isn't this the wrong approach. Don't you use the REST API? -
How to reliably know if there is data selected in TVirtualStringTree
David Heffernan replied to Mike Torrettinni's topic in VCL
What if the user has clicked without using the mouse? -
handling predicate conditions
David Heffernan replied to David Schwartz's topic in Algorithms, Data Structures and Class Design
The downside of adding checks is that the code bloat is huge. Imagine a function that accepts three args and just forwards them on to another method. You then have three checks against nil, and a single line to forward the call. That burden adds up. Having this checked statically, or even at runtime like range checking would be a boon. Of course, none of that helps with the much more invidious error of passing a reference to an already destroyed object. -
handling predicate conditions
David Heffernan replied to David Schwartz's topic in Algorithms, Data Structures and Class Design
Not something I've ever experienced being a Windows only delphi dev.