The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 4,262 other subscribers

Archive for July 5th, 2018

listview – TListView detecting ESC or unchanged editing – Stack Overflow

Posted by jpluimers on 2018/07/05

Delphi translation by Thomas Mueller of a C++ Builder fix [WayBack] listview – TListView detecting ESC or unchanged editing – Stack Overflow

Via [WayBack] TListView detecting ESC or unchanged editing – Thomas Mueller (dummzeuch) – Google+

–jeroen

Posted in Delphi, Development, Software Development | Leave a Comment »

You can use Linux API calls directly from Delphi 10.2 and up

Posted by jpluimers on 2018/07/05

Paul TOTH figured this out:

you can use any Linux API but it’s not trivial.

  1. you have to install the “dev” library under Llinux, like “apt-get install xxx-dev” for the xxx API
  2. you have to update the Linux DSK in Delphi
  3. you can declare the API as externals function as usual
  4. now you can compile and deploy the application.

If you miss the steps 1 or 2 you’ll have a linker error.

Source: [WayBackDear… Delphi 10.2 Tokyo, can i use linux api directly? like ‘fcntl(….)’.

And there is this great blog post that I found later by [WayBack] Allen Drennan: [WayBackImporting third-party Linux libraries on Delphi 10.2 Tokyo – grijjy blog

–jeroen

Posted in Delphi, Delphi 10.2 Tokyo (Godzilla), Development, Software Development | Leave a Comment »

I totally forgot that Delphi has had a function to get the current executing thread – Stack Overflow

Posted by jpluimers on 2018/07/05

While updating some old code fiddling with the[WayBackGetThreadId function, I wanted to have some TThread wrapper around it. I had totally forgotten there has been already a means for this since Delphi 2009 (which initially had a bug, but that was worked around at first and fixed later): [WayBackCurrentThread.

The latest version of Delphi, Delphi 2009, has a CurrentThread class property on the TThread class.

This will return the proper Delphi thread object if it’s a native thread. If the thread is an “alien” thread, i.e. created using some other mechanism or on a callback from a third party thread, then it will create a wrapper thread around the thread handle.

20081001 at 5:00 – [WayBackBarry Kelly

Sources

–jeroen

Posted in Delphi, Delphi 10 Seattle, Delphi 10.1 Berlin (BigBen), Delphi 10.2 Tokyo (Godzilla), Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Delphi XE7, Delphi XE8, Development, QC, Software Development | Leave a Comment »