[MFC Feature Pack] Select an MDI tab programmatically in a Document View application

A customer recently asked this question, thought I’ll share the solution out here. Its not that obvious FYI. When creating an MFC MDI application we have an option to enable tabbed view of MDI documents. Once this is done here’s how the application will look like… Note that except for the first sample image you […]
Continue reading…

 

Visual Studio 2013 successfully Released to Web

Some useful links… Visual Studio 2013 Available Now!Visual Studio 2013 HighlightsSystem Requirements and Platform CompatibilityKnown issues for Visual Studio 2013 (Readme)Known issues for .NET Framework 4.5.1 (Readme)Known issues for Visual Studio Team Foundation Server 2013 (Readme)Windows Store is now open for submitting apps targeting Windows 8.1
Continue reading…

 

[MFC]Application migrated from VS2005 to VS2010 crashes on XP

The crash happens as a result of requesting a non-existent API via GetProcAddress, the API is GetThreadPreferredUILanguages. GetProcAddress returns 0xFFBADD11 (a known issue with windows XP where GetProcAddress returns NON-NULL) which means LDRP_BAD_DLL. To fix this issue override CWinApp::LoadAppLangResourceDLL and prevent loading of the lang dll or set the WINVER macro to target XP builds […]
Continue reading…

 

Announcing our third Windows Phone 8 update—plus a new developer preview program

By: Darren Laybourn, Corporate Vice President, Windows Phone A bigger Start screen for more Live Tiles. A new, customizable Driving Mode. Better accessibility options. These are just some of the new features and innovations that we’re getting ready to deliver to you in Windows Phone 8 Update 3, which will roll out to existing phones […]
Continue reading…

 

[.net] gcAllowVeryLargeObjects Element–beat the 2GB array size limit on 64 bit

Please note that this post is only applicable for .net 4.5 and above. Having trouble with .net array size limit, i.e. 2GB on a 64 bit target. Use above tag in your config file to work around this issue. A sample config file will look as follows… <configuration> <runtime> <gcallowverylargeobjects enabled=”true” /> </runtime> </configuration></pre> Please […]
Continue reading…

 

[Windows API] Programmatically invoking Map Network Drive dialog.

This how the map network drive dialog look like. So how do we show this dialog programmatically? The windows API’s for showing this dialog is: WNetConnectionDialog and WNetConnectionDialog1. I’ve demonstrated both WNetConnectionDialog and WNetConnectionDialog1 in this code snippet. WNetConnectionDialog is a simple API which takes a window handle and a DWORD. While WNetConnectionDialog1 is an […]
Continue reading…

 

[MFC] Resize CComboBox drop down list based on contents

I had this post in my draft for a long time. This code snippet resizes a combo box’s drop down list. Please note an application sends the CB_SETDROPPEDWIDTH message to set the minimum allowable width, in pixels, of the list box of a combo box with the CBS_DROPDOWN or CBS_DROPDOWNLIST style. Note: MFC function CComboBox::SetDroppedWidth […]
Continue reading…

 

[Tools] PSR: Problem Steps Recorder

You’re not going to believe that you have a screen capture tool built into your operating system. LOL yes, its called PSR.exe. PSR stands for Problem Steps Recorder. The ideal usage of this tool is as follows… Capture repro steps (screenshots) for a bug and to send it your customer Capture screenshots for a particular […]
Continue reading…

 

What is Visual Studio’s 2012 Code Map All About? – Site Home – MSDN Blogs

  What is Code Map? Back in Nov 2012, in Visual Studio 2012 Update 1 a new feature named Code Map was introduced in Ultimate edition. The feature allowed visualization of relationships in code. Here’s a short video that will help you understand the concept behind Code Map. Beginning Visual Studio 2012 Update 2, Microsoft […]
Continue reading…