Jump to content

Sherlock

Moderators
  • Content Count

    852
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by Sherlock


  1. With so many computers lying around, why is there no room for one with a correctly setup iptables and transparent squid(guard) with updating black lists? Better yet, IPCop + Squid?

    Windows is simply not safe to be directly connected to the Internet, no matter how much you fiddle around with its security settings. Seriously!


  2. OMG...I just saw, I copied the wrong declarations to the interface. My bad! Corrected here:

    type
      TForm1 = class(TForm)
        Edit1: TEdit;
        Label1: TLabel;
        Label2: TLabel;
        Button1: TButton;
        MemoLog: TMemo;
        procedure BtnClick(Sender: TObject);
        procedure FormCreate(Sender: TObject); 
        procedure OnServiceConnectionChange(Sender: TObject; PushChanges: TPushService.TChanges);
        procedure OnReceiveNotificationEvent(Sender: TObject; const ServiceNotification: TPushServiceNotification);

    But good on you, that you spotted the problem and solved it!


  3. Ummm, no. those methods are intended to be part of the class TForm1. So add those declarations to the class declaration:

    type
      TForm1 = class(TForm)
        Edit1: TEdit;
        Label1: TLabel;
        Label2: TLabel;
        Button1: TButton;
        MemoLog: TMemo;
        procedure BtnClick(Sender: TObject);
        procedure FormCreate(Sender: TObject); 
        procedure BtnClick(Sender: TObject);
        procedure FormCreate(Sender: TObject);

    Like this...


  4. Just now, Clément said:

    LOL!!
    Don't worry I have precedence :classic_rolleyes: ... I founded DHS when I was still in high school,Turbo Pascal and Turbo C++ ruled the world ( a long time ago , in a galaxy far away... )  ...
     

    And I bet they hate you for it :classic_biggrin:


  5. 9 hours ago, Remy Lebeau said:

    I really wish Delphi would stop mimicking DotNet.  Delphi IS NOT DotNet!

    Aye, there's the rub.

    I propose exchanging DotNet with <SomeLanguage>. But folks keep saying "I want <SomeLanguage> feature x, because that is so cool, and I simply can't write my application without it". And then we get some half cooked thing which resembles <SomeLanguage> feature x by intent, but is buggy and breaks other stuff...


  6. 12 minutes ago, Rollo62 said:

    Don't mess with youself too much,
    if Microsoft shows not any attempt to make these controls practically more usable since the last 20+ years, why should we do ?

     

    I must really say that meanwhile I hate to fix all the quirks in OS, IDE, tools, libraries, etc.
    Enough to do with my own, selfmade errors :classic_blush:

     

    And in the end, what is the effort worth? Just to say: "In my product 1+1 is still 2 but it looks better than the others".


  7. 8 minutes ago, Uwe Raabe said:

    Either someone didn't understand FreeAndNil or the code used TObject in the first place and later changed to a typed pointer, but forgot to adjust the FreeAndNil call.

    You could think that to be the reason, but I'm looking at code with tons of PArrayOfByte like what I posted. This seems like some very, very old code and an array of byte is rarely implemented as a class is it? Much less back in the olden days.

×