Issue in sorting Items in a CListCtrl in MFC

MFC in Visual C++ 6.0 has a problem with header notifications for the ListView control. Although a handler can be added, in the current version it isn't called. For instance, use Class Wizard or the WizardBar to add a Windows Message Handler. If the ID for the ListView control is highlighted, a number of notification messages are available for selection. To sort the items when the header is clicked for a given column, select the notification HDN_ITEMCLICK. An ON_NOTIFY message map entry is generated, as well as a handler function. For the current example, the entry appears as follows: ON_NOTIFY(HDN_ITEMCLICK,

Continue reading

ASP.NET webdomain recycle on subfolder changes

While working on a web application, one of my team presented some weird behaviour on ASP.NET FIrst observation: Session times out randomly while working on the application. So we started observing the application closely to see what might be causing this. We came out with some more observations: Detailed observation: Session times out when any of the user participates in certain scenario. Also, not only the specific session expires, but all the use sessions are expired. Further study shown that actually the app domain itself recycles. We studied the activities in these specific scenario. We found that a certain implementation

Continue reading

Handling onPropertyChange in Firefox

IE non-standard onPropertyChange is a huge problem in most of the places. I was working on a work of moving an application designed to work on IE to a cross-browser standard. For some of the forms, there is a pop up and on the close button of the pop up, it used to update some of the fields in the opener page as:     function fnClose(rowid){         var taxHTML = document.getElementById("taxvalues").innerHTML;         window.opener.document.getElementById("taxvalues").innerHTML=taxHTML;         window.opener.document.getElementById("hdnTax").value=rowid;         //There is a event handler on this element in the opener using "onPropertyChange=fnPopClosed(this.value);"         window.close();     } There is

Continue reading

Now a new look

So now also a new look of the site. Its completely away from the standard themes available. Want to know the details? I merged one of the themes available for BlogEngine with the layout of another good looking website.  I am not a web designer. So there will be plenty of mistakes, at least I expect it to be so. Pleare report all the problems to me at theGeek@geekays.net and I will update the same as soon as possible. Thats my promise. Want to have it as a standard theme? Probably I shall take some time to make it a

Continue reading

Migrated from dasBlog to BlogEngine

So, last midnight, I have shifted this site from dasBlog to BlogEngine. I started with dasBlog in the starting of this year. But after going through the features and enhancements in BlogEngine, I shifted out for the better. The specific reasons are a newer codebase, better theme support and other better features. One of the major feature that caused me to shift is the static front page capability. I wanted to have a site where I can add blogs. dasBlog let me add page to the blog and the web site converts to a blog site immediately. I am not

Continue reading

Microsoft Patterns & Practices : Guidance Explorer

Wow! Just another goodie!! Look at this. Now a guidance explorer is available from the Patterns & Practices team at codeplex.com for all the people who want to better their performance. Congratulations to the team for the good work. The guidance explorer let you explore the guidances mentioned in various patterns and practices guidelines. No more browsing through numerous web pages to find out the guidances. A neat tool with an file explorer style tree to keep the points tidy. Just loved it. I shall request you all to get it installed and most importantly READ. Have it in the

Continue reading

Architectural patterns

Architectural patterns are meant for providing solutions to architectural problems in software engineering. It fundamentally provides a readymade structure of a solution that is targeted at a particular established proble. It describes a structural organization schema for a solution consisting of subsystems and underlines their responsibilities and interrelations. However there is significant difference between the architectural pattern and the architecture itself. An architectural pattern is a concept that captures essential elements of a software architecture. The pattern is a guideline to implement a particular architecture. So following a particular architectural pattern, the architects may come out with several different and

Continue reading

MVC : Model View Controller

Model View Controller is an Architectural pattern. View: The user interface (GUI) or the software which produces User Interface (ASP.Net Web forms ) which enables display of  information about the model to the user. Any object that needs information about the model needs to be a registered view with the model. Example – Boundary Class   Controller: The user interface presented to the user to manipulate the application. User Driven Events in GUI. Example – Control Class   Model: The core of the application. This maintains the state and data that the application represents. When significant changes occur in the

Continue reading