Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is there no Description property yet on the TService?

It's always been strange that there's never been a Description property on the TService in Delphi's VCL. Even to this day, Delphi XE2 doesn't have it yet. It's such a simple and common thing, that I'm wondering why it's not there.

I know how to create it myself, but my point is I shouldn't have to. I was wondering if there's any technical reason why Description of a service doesn't come built-in to Delphi's VCL? Because it seems so simple for them to implement.

like image 398
Jerry Dodge Avatar asked Mar 19 '13 02:03

Jerry Dodge


People also ask

How do you check if someone owns a property in Singapore?

LAND TITLES SEARCH To make a search, you need the Lot Number and the Survey District Number or the Title Number of the Property. You may conduct a search for Land Titles online or manually at the Registry.

How can I check my HDB title deed?

Viewing Your Title Deed If you own a private property or a HDB flat (whose title records have been digitised), you will be able to view your title deed free of charge online at MyProperty by SLA. For the list of HDB properties that have been digitised, click here.

How do I get the properties of a PowerShell object?

To get the properties of an object, use the Get-Member cmdlet. For example, to get the properties of a FileInfo object, use the Get-ChildItem cmdlet to get the FileInfo object that represents a file. Then, use a pipeline operator ( | ) to send the FileInfo object to Get-Member .

How do you find the annual value of a property?

The AV is determined by comparing the annual rental rates for similar or comparable properties on the HDB and URA websites for flats and private properties respectively. You may estimate the AV of your property by multiplying the monthly rent by twelve (number of months in a year).


1 Answers

Setting it requires ChangeServiceConfig2 API function which was introduced with XP & Win2003, the service class in Delphi was written before that, and for a long time, Windows NT4 and 2000 were the baseline for the Delphi RTL.

Also for some unknown reason, Borland (and successors) have been adverse to using dynamic binding on Windows API functions, preferring either static bindings to DLLs or late but non-optional bindings (don't ask me why, it makes no sense to me), and using the previous function would have required either having Win2003 as minimum version or using dynamic binding.

So I don't think it was a deliberate decision, but is more a consequence of company policy on dynamic bindings and plain old code maintainance neglect/oversight.

like image 151
Eric Grange Avatar answered Oct 21 '22 00:10

Eric Grange