How to Count the Lines of Code (LOC) in your application using Visual Studio

I was talking to someone the other day and he asked me whether Visual Studio has a tool to count the lines of code in an application. It occurred to me that others might be interested in the answer so I decided to blog about it. There is a tool called Code Metrics in Visual…

2

How to edit code when debugging a 64-bit application

One of the most popular features in the Visual Studio debugger is the ability to edit code during a debug session and have the changes apply without having to stop the debugger, recompile the application and then run the application to verify the changes. This feature is affectionately known as "Edit and Continue" or "E&C"…

0

Class Breakpoint: How to set a breakpoint on a C++ class in the Visual Studio Debugger

When debugging an application, there are times when you want the debugger to stop whenever any of the functions in a particular class are called. An example of this may be when you are trying to find out which object is calling your class. Of course, you could manually set a breakpoint on every function…

0

Troubleshooting common breakpoint problems in the Visual Studio debugger (Part I)

On the Visual Studio debugger team, one of the areas where we regularly receive feedback is when breakpoints don’t work. Furthermore, some of the error messages that the debugger displays when a breakpoint fails are generic so it might be hard to diagnose why a breakpoint doesn’t work correctly (we’re working to improve these error…

0

How to debug a 64-bit dump using the Visual Studio debugger

One of the questions that comes up about debugging dump files is how to debug a dump file that was created from a 64-bit process. The reason why this question comes up is because Visual Studio itself is a 32-bit application and therefore, cannot debug a 64-bit dump file (or process). As a result, the…

0

A few facts about the DinnerNow.net 3.1 sample application

Now that the DinnerNow.net 3.1 sample application has been released, I thought I’d share some information about the project to help developers learn more about DinnerNow.net and what they can expect after downloading it. The following table summarizes the artifacts (source code, images, et.c) that make up the DinnerNow.net 3.1 sample application. DinnerNow Artifact Count…

0

DinnerNow.net 3.1 for Windows 7 and Windows Server 2008 R2 released

DinnerNow.net 3.1 follows in the footsteps of the 3.0 release of DinnerNow.net by adding support for new Microsoft operating systems and platforms. New in DinnerNow 3.1 is support for Windows 7 and Windows Server 2008 R2. Also, DinnerNow 3.1 adds support for 64-bit operating systems and SQL Server 2008. For a complete list of new…

0

How to detect the .NET Framework directory using PowerShell

As 64-bit machines become mainstream, one of the problems that developers run into is dealing with registry keys and directories. This is because many applications and runtimes are designed to run on both 64-bit and WOW64. The problem comes about because the same application or runtime is installed in two different directories or has two…

0

Just released: Patch to make NetCFSvcUtil.exe work on Windows 7 (and other operating systems)

In an earlier blog post, I mentioned that NetCFSvcUtil.exe (available as part of Power Toys for .NET Compact Framework 3.5) is broken on the following operating systems: Window 7 RTM Windows Server 2008 R2 Windows Vista SP2 Windows Server 2008 SP2 Specifically, when you try to run NetCFSvcUtil.exe on these operating systems, you might see…

0

Windows 7 RTM Training Kit For Developers is here!

If you are a developer and you are planning to write applications for Windows 7, then one of the best places to start is the Windows 7 Training Kit For Developers which was released today. The Window 7 Training Kit has everything you need to get started with programming Windows 7, including sample code, videos,…

0