rprouse

Stories submitted by rprouse

Visual Studio 2010 Command Prompt Here(www.alteridem.net)

submitted by rprouserprouse(1175) 1 year, 8 months ago

Visual Studio Command Prompt here updated for VS2010 for both x86 and x64 machines. read more...

add a comment |category: |Views: 80

tags: another

Using Generics to Copy Data Between Classes of Different Types(alteridem.net)

submitted by rprouserprouse(1175) 3 years, 10 months ago

The latest in a series of posts exploring how we can reduce the grunt work in copying data between the data layer classes and the user interface classes. This uses a fluent interface to copy all of the data in one line of code rather than property by property. read more...

add a comment |category: |Views: 23

tags: another

Method to Copy Data Between Objects of Different Types(alteridem.net)

submitted by rprouserprouse(1175) 3 years, 10 months ago

One thing that I find tiresome when using the various Model/View patterns is the constant copying of data between the model and the view. This is the first post in a series on a possible easier way to do this. In this post I write a method that copies the data from one interface to another based on the names and types of the properties. Over the next few posts, I will extend the code to use generics and extension methods. read more...

add a comment |category: |Views: 42

tags: another

ReSharper 4.0 Released(jetbrains.com)

submitted by rprouserprouse(1175) 3 years, 11 months ago

Version 4.0 of our favourite productivity tool for Visual Studio has come out of beta and been released. Follow the link see the new features and then download it. If you haven't tried ReSharper yet, give it a try, its worth it. read more...

add a comment |category: |Views: 8

tags: another

Read Properties from an MSI File(alteridem.net)

submitted by rprouserprouse(1175) 4 years ago

How to open an MSI installer file and read properties like the Product Version or Product Name from it. The code provided could be easily modified to read information from any table in the MSI database. read more...

add a comment |category: |Views: 120

tags: another

Macro To Switch Between CPP and H File in Visual Studio(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 3 months ago

If you work in managed C++, the ability to quickly switch between the header and the source files saves a lot of time. This article shows how to write a macro to do this and shows you how to bind it to a keystroke. Even if you don't use managed C++, it is a good introduction to writing macros in Visual Studio. read more...

1 comment |category: |Views: 151

tags: another

The Stopwatch Class(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 4 months ago

Stop using DateTime to time long sections of code. The 2.0 framework introduced the System.Diagnostics.Stopwatch class to do the dirty work for you. read more...

1 comment |category: |Views: 19

tags: another

Writing an Appender for log4net(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 4 months ago

The open source logging library log4net ships with most of the appenders you will ever need, but if you need to write your own, it is surprisingly easy to do. This article describes how to write a simple appender that allows you to show a message box whenever an error log occurs and allows the developer to break into the debugger to fix the error. It makes sure that runtime errors are dealt with by the developer, not lost in a log file. This example could easily be extended to do things like open issues in a bug tracking system on errors. read more...

add a comment |category: |Views: 92

tags: another

Quickly Find/Open a File in Visual Studio(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 8 months ago

A quick way to find and open files in a large solution in Visual Studio that very few people know about. Other people have created addins to do this without even realizing the functionality was already there. read more...

3 comments |category: |Views: 81

tags: another

Bug Debugging Method Parameters in C++(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 8 months ago

Here is why you should make sure your parameter names are consistent between your declarations and definitions in C++. Not doing so leads to strange and confusing behavior in the debugger. read more...

add a comment |category: |Views: 1

tags: another

Easier Debugging with Attributes(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 8 months ago

Most people probably haven’t realized that there are several attributes that you can add to your code to make debugging easier. Some prevent you from stepping into sections of code, others change the way variables are displayed in the watch window. read more...

add a comment |category: |Views: 15

tags: another

Converting between Win32 COLORREF and .NET Color(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 9 months ago

If you are ever rewriting an MFC/Win32 program in .NET, you need to be aware that you cannot convert directly between a COLORREF value and a .NET Color structure. The byte order is different and will need to be swapped. read more...

add a comment |category: |Views: 92

tags: another

The Yield Statement in C#(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 9 months ago

The yield statement is another often overlooked keyword that was introduced in .NET 2.0. It is used to return items from a loop within a method and retain the state of the method through multiple calls. read more...

2 comments |category: |Views: 125

tags: another

The Null Coalescing Operator ??(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 9 months ago

It has been around since the introduction of C# 2.0, but many people still don't know about the null coalescing operator or what it does. If you are wondering how you would use the ?? operator in your code, read on... read more...

1 comment |category: |Views: 7

tags: another

Coding4Fun Developer Kit(codeplex.com)

submitted by rprouserprouse(1175) 4 years, 9 months ago

A collection of tools which have been developed to abstract the complexity of doing software development using common Windows Vista APIs. The kit features include drag ‘n drop controls and components, SmartTags, Visual Basic and Visual C# source code for all tools and samples as well as complete QuickStarts and APIs documentation. read more...

add a comment |category: |Views: 10

tags: another

Nullable Types in C# and .NET 2.0(alteridem.net)

submitted by rprouserprouse(1175) 4 years, 9 months ago

Nullable types were introduced in .NET 2.0. This article gives a quick overview of how to use them and some of the things to watch out for. read more...

2 comments |category: |Views: 6

tags: another