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 1,854 other subscribers

Archive for the ‘Delphi’ Category

Now where did I hear that “Aurora” codename again?

Posted by jpluimers on 2010/07/22

Now where did I hear that “Aurora” product codename name again?

Aurora seems to be the new product codename for Microsof’ts’ on-premises/cloud mix of Small Business Server.

But wait, wasn’t it eras ago that you could choose to run PHP on clouds for your business apps?

And isn’t Aurora/Delphi for PHP all about creating those apps?

–jeroen

via: Microsoft small-business server futures: 5 things to know | ZDNet / Aurora – a Microsoft cloud server for the small guy?.

Posted in Delphi, Delphi for PHP, Development, Opinions, Software Development | 2 Comments »

Delphi: great post by Malcolm Groves about Debugging Initialization and Finalization sections

Posted by jpluimers on 2010/07/21

Long time Delphi user Malcom Groves just posted an interesting video on Debugging Initialization and Finalization sections.

What I especially like is that he performs this trick using the DUnit unit testing framework for Delphi.
+1 for using unit testing!

The trick he uses is an old one, but I didn’t realize that few people know it, so it is good to put it in writing.

Note that the trick does not work in all cases (see further on an alternative), but for most cases it does work well:

  1. Open your .dpr (From the Delphi menu, choose “Project” followed by “View source”
  2. Put a breakpoint on the begin and end of your program code (see listing below)
  3. Run your project
    (note: for some Delphi versions: you have to F7 into your project)
  4. At the begin of your program Press F7 (“Run” – “Trace into”) in stead of F8 (“Run” – “Step over”)
  5. At the end of each initialization section, press F7 again (not F8!) to step into the next initialization section
  6. At the end of your program press F7 (not F8!) to step into the finalization section
  7. At the end of each finalization section, press F7 again (not F8!) to step into the next finalization

Easy, when you know, difficult to find out yourself (I found out by accident eras ago <g>).

Sometimes (I have not found out why yet) some Delphi versions refuse to work this way.
So you need an alternative, which is this one: Read the rest of this entry »

Posted in Delphi, Development, Software Development | 9 Comments »

Delphi and the ‘leaving’ of Nick Hodges

Posted by jpluimers on 2010/07/20

I’ve let this boil for a while before reacting on the let go by Embarcadero of  Nick Hodges from his R&D Manager position.

Reacting as a non-native English person is a tad difficult, as it is tough to express the fine aspects of the implications well.

So I’m posting this  in both the Delphi and Opinions category; reactions are more than welcome. Read the rest of this entry »

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

Date Time SQL Queries: Formatting Date Time Values for Access SQL in Delphi

Posted by jpluimers on 2010/07/08

Five words:

use parameters instead of literals.

via: Date Time SQL Queries: Formatting Date Time Values for Access SQL in Delphi.

Edit: Fixed “in stead of” into “instead of”: learned something new today :-)

–jeroen

Posted in Delphi, Development, Software Development | 9 Comments »

Delphi interfaces on binary level « The Programming Works

Posted by jpluimers on 2010/07/06

This interesting post by Serg Kas on Delphi interfaces on binary level didn’t make it on DelphiFeeds, hence my reference to it.

It is a nice post about the inner workings of interfaces in Delphi.

Recommended reading!

–jeroen

via: Delphi interfaces on binary level « The Programming Works.

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

Porting old Delphi component packages – things I always forget

Posted by jpluimers on 2010/06/22

I always seem to forget the solution for the error messages about DsgnIntf or DesignIntf.dcu not found when porting old (D# projects) to new (D####) projects.

Googling for this always gets a few false hits at the top, so for my memory,
here it is: Read the rest of this entry »

Posted in Component Development, Delphi, Designer Development, Development, Package Development, Software Development | 2 Comments »

Visual Studio 2005/2008 WPF bug: App.xaml not found messages

Posted by jpluimers on 2010/06/17

When you do some maintenance on old projects, you sometimes bump into things you have completely forgotten about.

This time it is in Visual Studio 2005, with a WPF app, and messages about App.xml.

Since there are few threads covering this problem, so I’m not sure how many people bump into this.
I know that the problem does not limit itself to C#;  I have seen people in VB.NET and Delphi.net bump into this as well.
This problem is not limited to Visual Studio 2005, some people also have it in Visual Studio 2010.
Some people also have it with other objects than App.xaml (like Windows1.xaml, etc).

If you get this error, the solution is simple:

  1. perform a “Clean Solution”,
  2. then run your app again.

This trick has worked for me every time I bumped into it. Read the rest of this entry »

Posted in .NET, C#, Delphi, Development, Prism, Software Development, Visual Studio and tools, WPF | 2 Comments »

Long pathname support: Watch for MAX_PATH (was: Windows pathname max length problem « Dropbox Forums)

Posted by jpluimers on 2010/06/16

When you want to support long pathnames on Windows, you need to watch for the MAX_PATH limitation.
Some tools, like RoboCopy (developed in C++), Beyond Compare (developed in Delphi) and others get it right.
Getting it right does not depend in your development environment: it is all about calling the right API’s with the right parameters.

Let me take a tool – in this case DropBox, though other tools suffer from the same problem – and investigate how they should do it.

Even though DropBox is cross platform, the Windows version of DropBox limits itself to synchronizing files having less than 260 characters in their path.
This is a big drawback: it is so 20th century having a limitation like this. Read the rest of this entry »

Posted in .NET, Delphi, Development, Encoding, Opinions, Software Development, Unicode | 6 Comments »

For a good laugh: Modern computer languages are a bit like people in some ways. – from “The Lounge – CodeProject”

Posted by jpluimers on 2010/06/07

For a good laugh: read the Modern computer languages are a bit like people in some ways thread in the CodeProject lounge.

–jeroen

Via: The Lounge – CodeProject.

Posted in .NET, C#, Delphi, Development, HTML, Java, Opinions, Software Development, VBS, Web Development, WPF | Leave a Comment »

Happy Towel Day

Posted by jpluimers on 2010/05/25

Don’t forget to bring your Towel today

–jeroen

Posted in .NET, About, Delphi, Development, Opinions, Personal, Software Development | 1 Comment »