Don’t use TxF

Sunday, May 6, 2012

Windows NT 6.x (Vista/Server 2008 and above) has many reliability mechanisms. Among them you can find the Windows Error Report, Application Restart & Recovery, The Restart Manager, and the Kernel Transaction Manager with Two resource managers, the Transactional Registry and Transactional NTFS, or in short TxF. However today I found out that it is no longer recommended to use TxF and that there are “better” alternatives, according to the MSDN documentation for CreateFileTransacted: [Microsoft strongly recommends developers utilize alternative means to achieve your application’s needs. Many scenarios that TxF was developed for can be achieved through simpler and...

Message Only Window in for .NET Application

Monday, December 26, 2011

  Overview .NET is great platform, it speeds up the development process, you deal with your application logic and in most cases you don't need to know that there is whole Windows operating system down there. However sometimes you do need to program against Windows without the .NET assistance. As a Windows developer, you need to keep all your weapons ready, be it .NET, COM or C++ with the native Win32 API. In this article I am going to show how to deal with Windows Message based communication protocol within .NET application. Windows Messages In traditional User32.dll based Windows application the Windows...

My Build Event Insights

Tuesday, September 20, 2011

You didn't have to go to //BUILD/ to get the information and knowledge of the new Windows Platform APIs; you could watch all the sessions from the comfort of your home, and I encourage you to do so, however attending the conference helps obtaining a perception about the future of Microsoft and especially the future of Windows technologies and the reaction of the developers that attended the conference. I didn't want to post about the conference before I have a clear picture, and believe me the picture was obscured. According to the first day keynote and the discussions...

C++ Renaissance: The Asynchronous Agents Library

Saturday, April 2, 2011

Visual Studio 2010 brings back the power of C++. The new language capabilities and optimized STL libraries, the developers productivity as well as the resulting executable performance are much higher. In this post I’d like to present one of the abilities of the ConcRT Asynchronous Agents Library. Agent is based on the Actor Model and is one of the building block of a Concurrent Dataflow Network. The idea behind the Asynchronous Agent Library is that you build a network from agents and message blocks. Messages are sent from agent and blocks to other agents and . The ConcRT scheduler...
5 comments

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     {        ...

Today! Gadi & Sahsa in the WPD User Group

Wednesday, January 6, 2010

Don’t forget to come today to the WPD user group to hear Sasha & Gadi.  Gadi is going to talk about parallel programming and Sasha is going to talk about developing native application with the next version of Visual Studio.  We are lucky to have two very talented lecturers in one evening.    This is the agenda for today: Agenda 17:00-17:30 Gathering 17:30-17:45 PDC Essentials – Alon Fliess ...

Thanks to the people that came to the first meeting of the Windows Platform Developers User Group

Thursday, November 5, 2009

Thanks for all of you that despite the traffic jams, made it and came to the first meeting. And thanks again for your feedbacks, all of them were excellent! Here are the links for the resources that we talked about: Windows 7 Training Kit Visual Studio 2010 Training Kit – The kit contains the MFC labs for the Windows 7 features XP2Win7 – stay tuned for a new release next week, or two. Removing the Kernel Dispatcher lock by Arun Kishan ...

The first meeting of the Windows Platform Developers User Group

Wednesday, November 4, 2009

Come and join Pavel and me to the first meeting of the Windows Platform Developers user group. If the Windows platform is interesting you (and it probably does, otherwise you won’t be reading this post) you have to come. This is the chance to influence the spirit of the group. Pavel and I wanted to have a group for people like us. Those who develop for Windows with any needed tool, not just .NET or C++ but both and even more. The first meeting will be about Windows NT 6.1, this is the shortest way to say Windows 7...

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...

More Windows Ribbon Tools & Resources

Sunday, November 1, 2009

As the co-author of the “Introducing Windows® 7 for Developers” book  I wrote the two chapters about the new Windows Ribbon Framework. The first Ribbon chapter deals with the Ribbon markup language and the second chapter deals with the code behind. To let the reader the ability to understand and play with the markup language before reading the code behind chapter, I have created an open source project named RibbonExpolorer. The Ribbon team from Microsoft has also created such a tool named PreviewRibbon that they have just released.    Both tools are good and...