Jump to content

Stéphane Wierzbicki

Members
  • Content Count

    172
  • Joined

  • Last visited

Community Reputation

27 Excellent

About Stéphane Wierzbicki

  • Birthday July 20

Technical Information

  • Delphi-Version
    Delphi 10.3 Rio

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Stéphane Wierzbicki

    Delphi Native Code: Fast or Reliable?

    Well this was almost 14 years ago ! I found some reference but no real explanation (tbh I don't care about). http://www.codenewsfast.com/cnf/article/0/waArticleBookmark.7292264
  2. Stéphane Wierzbicki

    Delphi Native Code: Fast or Reliable?

    I remember a change in the way application was displayed in task bar (twice). If I recall it was an issue specific to application built with Delphi.
  3. Stéphane Wierzbicki

    A Component Named xxxx Already Exists.

    Do you have any IDE experts installed? If so, did you try removing them?
  4. Stéphane Wierzbicki

    kuLibrary

    You meant "At the least"? I agree, if he want to attract more users, it is more than necessary to have English content.
  5. Stéphane Wierzbicki

    How to completely hide application from taskbar (on launch)?

    Would you mind creating a quality entry on Embarcadero website? Btw are you working with which Delphi version?
  6. Why don't you just create one metWhySpineditxxxChange event and bind it to all your components change event? This can be done at design time as well as runtime.
  7. Stéphane Wierzbicki

    Delphi Code-Insight problems

    How ?
  8. Thanks, looks like I need either some good sleep or vacation !
  9. Stéphane Wierzbicki

    Disabling IDE Theme ? IDE is so slow

    Hello, I'm trying to disable IDE Theme (because it is damn slow). Setting Computer\HKEY_CURRENT_USER\Software\Embarcadero\BDS\21.0\Theme\Enabled entry to Value: 0 brings me hope but : IDE start with an exception: and there are some disgraceful black painted controls and IDE Is there maybe another way to get rid of this ? I seen a lot of people complaining about VCL Theme speed and IDE slow down.... Why the hell Embarcadero do not listen to their customers? BTW I'm working with Delphi Sydney 10.4.1 + all available patches
  10. Thank you Uwe, but problem still arise, the RTTI code is not able to read (or write) value from (or to) a record.
  11. Thank you Attila, but I've already spotted this 😉. The thing is I don't know actually how to do this 🙂 !
  12. Stéphane Wierzbicki

    ANN: Parnassus Parallel Debugger

    Thanks, this looks really promising. I just want to inform you that IDE is unstable since installing this plugin Delphi is runniing on a Windows 2016 TSE server.
  13. Hello everyone, I hope this message finds you all in good health! This year and really weird.... But anyway, let's get back to the point. I recently found a little nugget on the Internet developed by the brilliant @Uwe Raabe : it's a Dataset helper that automatically fills in the properties (or even fields) of an object. The source code can be found at this address : https://www.uweraabe.de/Blog/2017/02/09/dataset-enumerator-reloaded/ I have slightly adapted the source code to use TMS Aurelius attributes (using "Column" attribute instead of "DBField" one provided bu Uwe). The Dataset helper works perfectly well "simple" classes such TCustomer = class private [Column('CustNo')] FCustNo: Double; FCompany: string; FAddress1: string; public [DBField('Addr1')] property Address1: string read FAddress1 write FAddress1; property Company: string read FCompany write FCompany; end; But it gets more difficult as soon as my fields are declared this way: TCustomer = class private [Column('CustNo')] FCustNo: Nullable<Double>;; FCompany: Nullable<String>;; FAddress1: string; FEntity: TObject; public [DBField('Addr1')] property Address1: string read FAddress1 write FAddress1; property Company: string read FCompany write FCompany; property Entity: TObject read FEntity write FEntity; end; At runtime application is throwing "Invalid Type Typecast" exception on every TRTTI.GetValue or TRRTI.SetValue procedure TDataSetHelper.TDataSetRecord<T>.TFieldMapping.LoadFromField(var Target: T); begin FRTTIField.SetValue(GetPointer(Target), TValue.FromVariant(FField.Value)); end; procedure TDataSetHelper.TDataSetRecord<T>.TFieldMapping.StoreToField(var Source: T); begin FField.Value := FRTTIField.GetValue(GetPointer(Source)).AsVariant; end; procedure TDataSetHelper.TDataSetRecord<T>.TPropMapping.StoreToField(var Source: T); begin FField.Value := FRTTIProp.GetValue(GetPointer(Source)).AsVariant; end; procedure TDataSetHelper.TDataSetRecord<T>.TPropMapping.LoadFromField(var Target: T); begin FRTTIProp.SetValue(GetPointer(Target), TValue.FromVariant(FField.Value)); end; I guess this is happening because of either reading/writing values from a Record or an Object. I searched (maybe not enough nor thoroughly) the Internet but I wasn't able to solve this by myself. Can someone helps me sorting this out adapting attached unit to handle simple properties types (integer, double, date, string, boolean....) values as well Nullable one ! (and rejects complex types too 🙂 ) I'll really appreciate some help. Kind regards, Stéphane Ps: I have attached modified Uwe's unit file. Ps2: I'm working with Delphi Sydney Aurelius.Dataset.helper.pas
  14. Stéphane Wierzbicki

    git and Delphi tooling?

    I'm using TortoiseGit, never used the IDE integrated one...
  15. Stéphane Wierzbicki

    Delphi 10.4.1 and the IDE FIx Pack

    I do not fully agree. I was able to live without IDE FixPack until XE area, when unit scope was introduced. At that time IDE were barely usable, took a lot of time displaying forms at design time, compiling project (the more directories in the search path the worse the IDE react)...
×