The Wiert Corner – irregular stream of stuff

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

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140508-Delphi-2007--Project-Options--Cannot-Edit-Application-Title-HelpFile-Icon-Theming

    20140430-Fiddler-Filter-Actions-Button-Run-Filterset-now

    20140424-Windows-7-free-disk-space

    More Photos
  • Pages

  • All categories

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

    Join 1,329 other followers

Archive for the ‘Delphi’ Category

Some great reads from Barry Kelly

Posted by Jeroen Pluimers on 2014/09/02

Barry Kelly (Twitter, HN, SO, G+Blog) was one of the Delphi compiler engineers.

He wrote a great number of insightful blog posts, some of which are in chronological order: Read the rest of this entry »

Posted in Delphi, Development, Software Development | 1 Comment »

Developer Skill Sprints video links

Posted by Jeroen Pluimers on 2014/08/29

After Bill Meyer asked, Helge Larsen wrote:

The landing page for Developer Skill Sprints is here: https://www.embarcadero.com/landing-pages/skill-sprints

The videos is on Developer Skill sprints YouTube channel first: https://www.youtube.com/playlist?list=PLwUPJvR9mZHhZTajVWsgaFPLtDA-t1Xwc

–jeroen

via: Anyone know what’s up with the links to the videos for the Developer Skill….

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

Delphi: So XOAuth2 SASL component that can do OAuth2 (via: Asbjørn Heid, G+)

Posted by Jeroen Pluimers on 2014/08/29

Thanks Asbjørn Heid for sharing this:

I made this!  -

So this week I’ve been mostly trying to add some GMail integration to our app. Google now requires OAuth2 authentication when using IMAP, unless you turn off some scary-sounding security setting on your account.

While Indy‘s IMAP component supports SASL authentication, there was no XOAuth2 SASL component out of the box. Thanks to the new REST stuff in Delphi, the OAuth2 basics where there so just had to tie them together.

In case others might find it fruitful, I’ve shared my results here: https://github.com/lordcrc/IndySASLOAuth2

notes:

–jeroen

via: So this week I’ve been mostly trying to add some GMail integration to our app.….

Posted in Delphi, Delphi XE5, Delphi XE6, Delphi XE7, Development, Software Development | 1 Comment »

Delphi: always watch the compiler Warnings

Posted by Jeroen Pluimers on 2014/08/28

Quiz questions:

  1. Does the below unit test succeed or fail?
  2. Why?
procedure TestHResult.Test_EOleException;
var
  OleException: EOleException;
  IResult: LongInt; // == HResult
  UResult: Cardinal; // == DWord
begin
  IResult := $800A11FD;
  UResult := $800A11FD;
  try
    OleException := EOleException.Create('message', $800A11FD, 'source', 'helpfile', -1);
    raise OleException;
  except
    on E: EOleException do
    begin
      if E.ErrorCode = $800A11FD then
        Exit;
      Self.CheckEquals(E.ErrorCode, $800A11FD, 'E.ErrorCode should equal $800A11FD');
    end; // E: EOleException
  end;
end;

Read the rest of this entry »

Posted in Delphi, Delphi 4, Delphi 5, Delphi 6, Delphi 7, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Development, Software Development | 2 Comments »

A way for a VCL TFrame to be notified when it is actually shown (via G+)

Posted by Jeroen Pluimers on 2014/08/27

Interesting, as I didn’t think this was possible. Thanks Oliver Funcke!

Notification when a `TFrame` becomes visible.

TMyCommonFrame = class(TFrame)
  private
    FOnShow: TNotifyEvent;
    procedure CMShowingChanged(var M: TMessage); message CM_SHOWINGCHANGED;
  public
    property OnShow : TNotifyEvent read FOnShow write FOnShow;
  end;
...
procedure TMyCommonFrame.CMShowingChanged(var M: TMessage);
begin
  inherited;
  if Showing and Assigned(FOnShow) then
    FOnShow(Self);
end;

–jeroen

via Is there any way for a VCL TFrame to be notified when it is actually shown to….

Posted in Delphi, Delphi 2007, Delphi 2009, Delphi 2010, Delphi XE, Delphi XE2, Delphi XE3, Delphi XE4, Delphi XE5, Delphi XE6, Development, Software Development | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 1,329 other followers

%d bloggers like this: