C++ Renaissance: Getting Back The Free Lunch

Saturday, April 16, 2011

At the beginning of 2005 Herb Sutter had an article stating that the developer’s free lunch is over. We had an assumption that more transistors in the CPU imply better application execution speed. The CPU executes the code in a sequential manner hence the performance of the CPU-bound code is directly related to CPU frequency. This used to be our “Free Lunch”: an old program runs faster on a new CPU. Using this assumption with modern low power consumption multi-core CPUs is wrong, we might even find that an old program runs slower on a new CPU. Since performance...

Screen Capture in SIlverlight 4.0

Tuesday, July 6, 2010

Recently I have been doing a very sophisticated Silverlight project. In this project there was a need to capture the screen and to save the image in a data base. The known way to capture a screen is to use a WriteableBitmap class instance (See Jeff Prosise blog about this feature that was added in SL 3.0). To capture the screen we use the code from http://stackoverflow.com/questions/1139200/using-fjcore-to-encode-silverlight-writeablebitmap  The following code is a service that captures the screen image:       public classSnapshotService : ISnapshotService     {        ...

Help me to use the Help System of VS 2010

Tuesday, April 6, 2010

One of the new features of VS 2010 is the new Help system. During the MVP Summit we have introduced to the new system which has very good foundation, but the viewer that comes with VS 2010 is lack of many features that we used to have and loved such as the TOC, Index, Synch TOC, etc.   Fortunately there is a tool (H3Viewer) that provides the missing features:   In the site you can also find the mshcMigrate tool that enable the migration of old MS Help files...
one comment

Sela Developer Practice

Monday, November 2, 2009

We are going to the PDC. And when I say we, I mean 17 experts and 3 managers from Sela. This year we are going to be in all sessions and meet many key professionals from Microsoft and other companies. We will also have a booth. Why do I tell you that? Not just to tell you that it is fun to work at Sela (It is, but it is also very demanding) and that we are investing in our people, but to announce that we are going to talk about all current and new technologies that will...

The Return of the GUID

Wednesday, October 29, 2008

One of the main problems of COM interop is the need to distribute the interop libraries with your application. If your application footprint is 50K, and you use only one API from the Office interop library, you will need to have the 1.2MB PIA library installed with your executable. The situation is even worth because the only way to install the Office PIA is by installing the Office redistribution pack which its footprint is over 6MB. To fix this situation Microsoft has developed a new feature in C# 4.0, The NoPIA. No Primary Interop Assembly means that you can...
tags: , , ,
7 comments