Click here to Skip to main content
6,594,432 members and growing! (16,434 online)
Email Password   helpLost your password?
Article Category: All Topics MFC/C++ C# VB.NET ASP.NET SQL Architect Windows 7 Java LAMP Mobile CEO / Manager
Announcements
BullFrog Power
 
Search    
Add to IE Search

Programming Tips


General Programming » Programming Tips
Language
Platform
Technology
Audience
Skill Level
Clear All

Contents

 

Programming Tips - Design and Strategy

top
Title / Updated Author Score  
AspectF Fluent Way to Add Aspects for Cleaner Maintainable Code
Updated: 19 Sep 2009  
AspectF is a simple way to do Aspect Oriented Programming style coding which makes your code a lot cleaner and more maintainable.
C#, .NET (.NET 3.5, .NET 4.0), Architect, Dev, Design
Omar Al Zabir 4.90
Unlimited baselines for any class
Updated: 11 Jun 2009  
Using the ComponentModel namespace to implement unlimited baselines.
C# 3.0, Windows, .NET 3.0, LINQ, Architect, Dev
Alex Perepletov 4.78
A Simple State Machine
Updated: 29 Oct 2009  
Create loose coupled States using a Finite State Automation (FSM) model.
C#, Windows, .NET, Dev, Design
morgi_a 4.71
Execute Stored Procedure in SQL Server using nHibernate
Updated: 20 Aug 2009  
Useful tips to excecute stored procedure using nHibernate
C# (C# 2.0), .NET (.NET 2.0, .NET 3.0, .NET 3.5), All Topics
ziaulh 4.67
The Power of Perl OO
Updated: 14 Mar 2008  
Using Perl's object oriented interface to extend existing types
Perl, Dev
Helbrax 4.50
Collapsing Multiple Progress Bars
Updated: 15 Nov 2007  
An article on how to collapse the progress feedback given by multiple routines in a single progress bar
C++, Windows, Visual Studio, Dev
Danny Ruijters 4.30
Reducing Code Complexity on Switch-blocks
Updated: 7 Oct 2008  
Using a Dictionary instead of a switch-case construction to reduce complexity and increase testability
C#, Windows
Timmy Kokke 4.27
Debugging Windows Service Without Deploying It
Updated: 10 Dec 2007  
This article decribes an easy way to debug Windows Services without having to deploy it.
C# (C# 1.0, C# 2.0, C# 3.0), .NET (.NET 2.0, .NET 3.0, .NET 3.5), Dev
Eric De Carufel 4.21
PomDemo 1.0 - an object model construction demonstration
Updated: 29 May 2003  
A pattern for simplifying the building of applications supporting undo/redo, applications with complex dialogs and distributed applications
VC6, VC7Win2K, WinXP, MFC, Dev
PeterAnsell 4.11
Using the Chain Of Command Design Pattern Concepts to Perform Validation and Processing of Complex Data
Updated: 20 Aug 2009  
Article demonstrating the usage of chain of command design pattern concepts to perform validation and processing of complex data.
C# 3.0, Windows, .NET 2.0, Dev
Curt C 4.00
Generate an XML parser automatically
Updated: 31 May 2004  
An article on XML parser or code generation automatically.
XML, VC6, VC7, VC7.1.NET 1.0, .NET 1.1, Win2K, WinXP, Win2003, Visual Studio, STL, Dev
Albert Wang 3.67
Another use of SEH
Updated: 17 Jun 2004  
How to use SEH to supply a parameter to a function.
Windows, Visual Studio, Dev
valdok 3.43
Some Easy Ways to Send Emails (via SMTP) and SMS Text Messages
Updated: 30 Dec 2007  
A beginner's guide on how to send emails (via SMTP) and SMS text messages when you don't have adequate access to the necessary resources
C++/CLI, C, Perl, HTML, VC7.NET 1.1, .NET 2.0, Win2K, WinXP, Win2003, ASP, ASP.NET, MFC, WinForms, WebForms, VS.NET2003, VS2005, DBA, Dev, QA
daluu 3.25
Developing applications that always decease gracefully.
Updated: 9 Sep 2003  
An article that describes how to write applications that always quit gracefully.
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, MFC, Dev
Jagadeesh VN 3.09
Reliable Floating Point Equality Comparison
Updated: 5 Dec 2006  
Compare floating point numbers for equality at programmer-specified precision.
C++, Windows, Visual Studio, Dev
John Simmons / outlaw programmer 2.87
Simple Example of MVC (Model View Controller) Design Pattern for Abstraction
Updated: 8 Apr 2008  
Simple example of MVC (Model View Controller) design pattern for abstraction
C#
rj45 2.72
Naming Conventions: Grouping within a Class
Updated: 25 Jul 2008  
We provide a challenge to conventional wisdom of verb first to aid in grouping of names.
Windows, .NET, Architect, Dev
ShofarNexus 2.63
Defense against the dreaded Klingon Battlecruiser
Updated: 15 Apr 2004  
An article about application users and their perception.
Win2K, WinXP, Dev
Bamaco2 2.55
How to set the maxlength of the textboxes dynamically - Unedited
Updated: 6 Jan 2008  
How to set the maxlength of the textboxes dynamically
C# (C# 1.0, C# 2.0, C# 3.0), Windows (Win2K, WinXP, Win2003, Vista), Win32, ADO.NET, Dev
Santiago Sanchez 1.52

Programming Tips - General

top
Title / Updated Author Score  
Full Name Tutorial Part 2
Updated: 7 Sep 2009  
How to extract the full name, including version, public token key from an assembly and then unload the assembly!
C#
gbd77rc 5.00
Great UI (Mark Miller) - Unedited
Updated: 27 Oct 2009  
Just came across this fantastic series and thought I'd share. Mark Miller is the driving force behind CodeRush.  The essense of great UI (an overview) Why is great UI so hard to achieve? Great UI clarity and information relevance Great UIs, clarity and emphasis Great UIs, clarity and info
Windows, Win Mobile, Mobile, Linux
Thiru Thirunavukarasu 5.00
Javascript hack to disable Right Click and Text Selection - Unedited
Updated: 22 Sep 2009  
Sometimes we have requirement to disable Right Click context menu and Text selection of a web page from the user, so that the user cannot use the right click default context menu and also to disable text selection so that sensitive data could not be copied from the website. To Disable Context Menudo
Javascript, Windows, ASP.NET, Dev
Abhishek Sur 5.00
Using Bookmark in Visual Studio - Unedited
Updated: 10 Oct 2009  
Speedup code navigation using Bookmarking in Visual Studio
All Topics
Abhijit Jana 5.00
How to develop your own Boot Loader - Unedited
Updated: 23 Jul 2009  
This article describes the first steps in low-level programming on the example of developing of simple boot loader
C++, ASM, Windows, Visual Studio (VS2005, VS2008), COM, Architect, Dev, Design
Apriorit Inc, Alex Kolesnyk 4.94
Programming Self-generating Code for Windows Applications
Updated: 29 Feb 2008  
Executing VC++ codes in STACK or HEAP
VC6, VC8.0Win2K, WinXP, Win2003, Vista, MFC, VS2005, CEO, Dev
Jim Charles 4.85
Memory Management in .NET - Unedited
Updated: 25 Jul 2009  
Discussion on Memory Management.
All Topics
Abhishek Sur 4.83
Speed Up the Visual Studio Toolbox - Unedited
Updated: 26 Jul 2009  
There are plenty of tips out on the web that I see no need to repeat here. But this one made such a remarkable difference on my box that I had to post it…
.NET, Visual Studio, Dev
Steve Wellens 4.83
Programming the MS Agent Control
Updated: 3 Mar 2000  
Programming an animated agent similar to the office assistant.
VC6, MFC, Dev
Santosh Rao 4.79
10 Minutes to document your code
Updated: 19 Jan 2003  
Setting up doxygen, a free tool to document your code, in a few simple steps.
VC6Win2K, WinXP, Visual Studio, MFC, ATL, WTL, STL, Dev
peterchen 4.79
How to drag a virtual file from your app into Windows Explorer
Updated: 13 Sep 2006  
Shows how to use CFSTR_FILEDESCRIPTOR and CFSTR_FILECONTENTS to perform drag/drop with virtual files
VC7.1, VC8.0Win2K, WinXPVS.NET2003, VS2005, Dev
Nishant Sivakumar 4.78
FIXME - A Smart FIXME Macro
Updated: 25 May 2009  
Using this smart 'FIXME' macro will help you not to forget to fix your code.
C++, Windows, Visual Studio, Dev
Jochen Baier 4.78
Compiling and Integrating Crypto++ into the Microsoft Visual C++ Environment
Updated: 14 Jan 2009  
Avoid common pitfalls when using Crypto++ and VC++
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Win2003VS.NET2003, VS2005, Dev
Garth J Lancaster, Jeffrey Walton 4.77
Picking An Open Source License w/o Becoming Brain Dead (or Brain Washed)
Updated: 11 Apr 2008  
Choosing your open source license
All Topics
TheBigRedDog 4.76
A Utility to Clean Up Compiler Temp Files
Updated: 24 Dec 2002  
A shell extension that deletes compiler temp and intermediate files.
VC6, Visual Studio, Dev
Michael Dunn 4.75
Playing with the stack
Updated: 27 May 2003  
An article describing how a C++ compiler uses the stack.
VC6Win2K, Dev
Chavdar Dimitrov 4.74
Object Oriented JavaScript Class Library in C#/.NET Style
Updated: 21 Jun 2009  
JavaScript classes ported from .NET
Javascript, CSS, HTML, .NET (.NET 1.0, .NET 1.1, .NET 2.0, Mono, DotGNU, .NET 3.0, .NET 3.5), ASP, ASP.NET, Ajax
EJocys 4.72
INI file reader using the spirit library
Updated: 3 Jan 2006  
A simple implementation of an INI file reader using the boost::spirit framework
Windows, Visual Studio, Dev
Silviu Simen 4.70
VSS: protocol handler for Visual SourceSafe
Updated: 27 Jun 2001  
This article describes how to hook up a protocol, in the example "vss:", to a custom handler to open a document from a Visual SourceSafe repository using automation.
VC6Win2KIE 6.0, Dev
Victor Vogelpoel 4.69
Optimization: Your Worst Enemy
Updated: 12 Aug 2000  
Learn about the potential pitfalls of code optimization.
VC6, Visual Studio, MFC, Dev
Joseph M. Newcomer 4.68
ResSwitch & ResList v1.2 - Easily change screen resolution
Updated: 3 Mar 2000  
2 freeware utilities to quickly change Screen Depth and Resolution.
VC6, MFC, Dev
PJ Naughter 4.67
Visual C++ 2003 Meyers Singleton Bug
Updated: 7 Jun 2007  
A description of a bug in the Visual C++ 2003 compiler and a workaround
VC7.1, WindowsVS.NET2003, Dev
Stephen Boissiere 4.67
General Policy Idiom
Updated: 31 Jan 2007  
The article describes an idiom which can help create a highly customizable template library in C++ by applying an immense level of parameterization.
VC7, VC7.1, VC8.0, Windows, Visual Studio, Dev
voidbent 4.65
45 Day Series: Codeproject VC++ Forum Q&A - IV - Unedited
Updated: 31 Jul 2005  
Collection of Q&A from VC++ forum between 25 April 2005 to 8 June 2005
VC6, VC7, VC7.1, VC8.0, Windows, Visual Studio, Dev
ThatsAlok 4.65
Whole Program Optimization with Visual C++ .NET
Updated: 10 Dec 2001  
Visual C++ .NET goes to an entirely new level with Whole Program Optimization. This article discusses everything that the compiler can do using this new framework for optimization and how little the developer must do.
VC7, Windows, Visual Studio, Dev
Brandon Bray (MSFT) 4.64
Building Boost libraries for Visual Studio
Updated: 18 Jul 2007  
Building boost libraries for Visual Studio.
VC7.1WinXP, Visual Studio, Dev
Gast128 4.62
Aggressive Optimizations for Visual C++
Updated: 26 Oct 2002  
Save time and space in your release builds - fight bloatware!
VC6, Visual Studio, Dev
Todd C. Wilson 4.61
Importing Type Libraries
Updated: 23 Feb 2003  
Using alternatives to importing type libraries and COM objects can improve the portability of your source code.
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, PocketPC 2002, Visual Studio, ATL, Dev
Heath Stewart 4.60
Implementing Deep Cloning via Serializing objects
Updated: 22 Feb 2008  
The implementation for a deep clone helper class
C# (C# 1.0, C# 2.0, C# 3.0), .NET (.NET 2.0, .NET 3.0, .NET 3.5), Dev
Stephen Inglish 4.57
Compiler's Code Optimization - The Dark Side
Updated: 25 Jun 2003  
How compiler's code optimization models works and mixing its to create an hybrid optimization model.
VC6, VC7, VC7.1, Dev
Marcelo A. B. Slomp 4.53
Find in CWebBrowser Control
Updated: 10 Aug 2000  
How to display the "Find" window in a CWebBrowser control.
VC6Win2K, Visual Studio, MFC, COM, Dev
Jeremy Davis 4.53
Finding performance bottlenecks and their resolutions in windows services - Unedited
Updated: 21 Jan 2008  
This article will address tools and technologies to identify bottlenecks and key consideration points for performance improvement.
C# (C# 1.0, C# 2.0, C# 3.0), VB (VB 7.x, VB 8.0, VB 9.0), SQL, Windows (Win2K, WinXP, Win2003), .NET (.NET 1.0, .NET 1.1, .NET 2.0), SQL Server (SQL 2000, SQL 2005), ADO.NET, Architect, DBA, Dev, Design
Sajid.Majeed 4.53
How to accurately detect if an application is theme-enabled?
Updated: 1 Jun 2005  
Describes a function that overcomes the inadequacies of IsAppThemed and IsThemeActive.
VC6, VC7, VC7.1WinXP, Visual Studio, Dev
Nishant Sivakumar 4.51
Using templates for initialization
Updated: 13 Feb 2001  
Use templates to initialize structures or simple member variables.
VC6Win2K, Visual Studio, Dev
Paul Westcott 4.50
Syntax coloring for user-defined keywords in Visual Studio
Updated: 20 Mar 2000  
A UserType.dat file that provides syntax coloring for user-defined keywords in Visual Studio
VC6, Visual Studio, MFC, Dev
Keith Kudlac 4.49
Automated Source Safe Backups
Updated: 20 Feb 2001  
A scripted approach to automating Visual Source Safe backups
Windows, Dev
Conor Hunt 4.49
Fixing the GPF in Devshl.dll when starting VC++ 5 or 6
Updated: 17 Jan 2000  
Having problems with Devshl.dll? Don't reinstall Visual Studio until you've read this!
VC6, Visual Studio, MFC, Dev
Sean Echevarria 4.48
Some Time-Saving Commands and Key Remappings for the VC IDE
Updated: 17 Mar 1999  
Save time and impress co-workers with these great keyboard shortcuts
VC6, Visual Studio, Dev
Michael Dunn 4.47
Learning Binary and Hexadecimal
Updated: 6 Mar 2006  
A beginner's guide to talking like a computer.
Windows, Visual Studio, Dev
Jeremy Falcon 4.42
The Right Way To Do Object Serialization
Updated: 15 May 2001  
A tip for using object serialization
VC6Win2K, Visual Studio, Dev
Leo Moll 4.42
C++ Development using eclipse IDE– Starters guide - Unedited
Updated: 25 May 2006  
C++ Development using eclipse IDE– Starters guide
Windows, Visual Studio, Dev
Boby Thomas P 4.41
Syntax Colouring for VBScript in Visual Studio 6
Updated: 31 Dec 2001  
A simple registry modification to make Visual Studio apply syntax colouring to VBScript files.
VBScript, VC6Win2K, WinXP, Visual Studio, Dev
Gavin Greig 4.41
A Utility for Browsing Directly to a Microsoft Knowledge Base Article
Updated: 3 Apr 2001  
A utility that lets you browse to a MS Knowledge Base article right from the Run dialog
VC6Win2K, Visual Studio, ATL, Dev
Michael Dunn 4.39
Introducing Regular Expressions
Updated: 7 Apr 2005  
Basic Regular Expressions with detailed examples.
Windows, Visual Studio, Dev
Vasant Raj 4.38
Secure Coding Practices: Running with Least Privileges in Windows
Updated: 8 Mar 2003  
An article on developing software while running with least privileges in Windows
Win2K, WinXP, Dev
Dana Epp 4.38
VS IDE Editor Tip: Quick Macros
Updated: 15 Oct 2002  
VS Editor Tip: How to use Quick Macros
VC6, Windows, Visual Studio, Dev
Paul Watt 4.37
How to Use Google and Other Tips for Finding Programming Help
Updated: 8 Mar 2008  
A primer for people looking to learn to help themselves find answers to programming questions
Windows
Christian Graus 4.34
Extracting Accelerators As Human Readable Text
Updated: 24 Aug 2004  
This article shows how to extract accelerators and convert them into human readable text, using the language settings for the current user.
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Win2003, Visual Studio, Dev
Jörgen Sigvardsson 4.29
Referenced Description Attribute
Updated: 6 May 2008  
An article on how to call an existing description in the designer
C#.NET 1.1, .NET 2.0, WinXP, Dev
J.Thomas 4.29
Parse a PE (EXE, DLL, OCX Files ) and New Dependency Walker
Updated: 2 Jun 2009  
A brief and basic explanation about the PE data strucutures, with a sample
C++ (VC6), Windows (WinXP), Win32, Visual Studio, Dev
Adam Roderick J 09 4.28
Send mail without specifying an SMTP server
Updated: 12 Apr 2005  
A class derived from CSMTPConnection that queries the MX record for a target domain and uses that to send mail
VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, ATL, Dev
Nishant Sivakumar 4.28
The Groovyness of the Gallery
Updated: 11 Feb 2003  
An article on using the Gallery to resuse classes.
VC6, Windows, Visual Studio, Dev
bryce 4.25
How To Place Complex Class with Dynamic Array in Continuous Memory Block
Updated: 22 Oct 2007  
Article describes a way to place complex class containing dynamic array with non-trivial members in continuous memory block
C++, Windows, Visual Studio, Dev
Kirill V. Lyadvinsky 4.25
A Typical Linux C Application: Standard I/O ports allowing simple IPC pipe based
Updated: 16 Oct 2008  
Demonstrates how to create a simple application that interacts with terminal standard I/O ports to provide an IPC pipe based between processes
C++, C, Linux, Dev
Ciro Sisman Pereira 4.25
A box of four fancy C++ Windows tricks
Updated: 28 Jul 2006  
This article presents four useful code snippets, solving four common coding problems
Windows, Visual Studio, Dev
Jörg Anslik 4.24
The Graphical Developer Interface
Updated: 16 May 2000  
Learn effective methods for logging and debugging your Windows apps.
VC6, Visual Studio, MFC, Dev
Joseph M. Newcomer 4.24
Visual Studio .NET- Old style member function wizard
Updated: 23 Jul 2002  
Modifies the new VS7 Member Function wizard to add a member function without using the parameter list
VC7Win2K, WinXP, Visual Studio, MFC, Dev
Moritz Leutenecker 4.22
Subsonic, MySQL and DAL DLL - Unedited
Updated: 16 May 2008  
Creating a DAL DLL using Subsonic and Mysql
C# (C# 1.0, C# 2.0, C# 3.0)
Dane-Garrin Balia 4.20
How to use the res: protocol in Developer Studio
Updated: 25 Mar 2000  
A simple MFC demo application that demonstrates using the res: protocol to use resources in your applications
VC6, MFC, Dev
Santosh Rao 4.14
To new is C++; To malloc is C; To mix them is sin
Updated: 29 Mar 2004  
Article explains the differences between malloc/free and new/delete in a C++ context
C++, Windows, Visual Studio, Dev
Nishant Sivakumar 4.14
How to generate import lib to dll files - Unedited
Updated: 20 Jul 2009  
Simple DEF file generator
C++ (VC6, VC7, VC7.1, VC8.0), C++/CLI, C, Windows, Win32, Win64, Visual Studio
Ladislav Nevery 4.08
How Yahoo! speeds up your application
Updated: 1 Mar 2006  
How accessing the Yahoo! Finanace page sppeds up your application.
VC6Win2K, WinXP, Dev
Bill Gu 4.08
About RSS
Updated: 26 Apr 2005  
What is RSS and how it is used to retrieve information.
Windows, Visual Studio, Dev
Vasant Raj 4.05
C++ Static Initialization Order: A New Solution to an Old Problem
Updated: 26 May 2007  
Presents an easy method to control order of initialization for static objects
C++ (VC8.0)WinXPVS2005, Dev
Matthew Faithfull 4.03
Reduce the Size of Your Final EXE File
Updated: 7 Jun 2000  
This article describes ways to reduce the final size of your applucation's EXE file.
VC6, Dev
Rehan Nadeem 4.03
Transparent desktop icons
Updated: 30 Dec 2004  
A brief discussion on what is involved in making the text background of the desktop icons transparent.
VC6Win2K, Dev
DavidCrow 4.03
The Importance of Sequence Order in the Creation of C++ Objects.
Updated: 28 Aug 2004  
This article demonstrates the importance of the sequence order of object creation in C++
VC6, Windows, Dev
Lim Bio Liong 4.00
Make Your Application Shutdown Aware
Updated: 27 Jan 2008  
This article explains how to make your application shutdown aware
C# (C# 1.0, C# 2.0, C# 3.0), .NET (.NET 2.0, .NET 3.0), Visual Studio (VS2005), Dev
Manish Ranjan Kumar 4.00
Lovely Pointers
Updated: 5 Jun 2003  
The topic of this article is pointers. I describe below some problems, bugs and technique solutions that correspond with using pointers. This article would be useful for beginners and programmers who use other programming languages and are starting to study C++ now.
VC6, VC7Win2K, WinXP, Visual Studio, MFC, STL, Dev
Brigsoft 3.97
.NET like Delegates in Unmanaged C++
Updated: 26 Sep 2002  
This article describes a design pattern on how to implement generic delegates as found in .NET, but using ordinary/unmanaged C++
VC7, Windows, Visual Studio, Dev
Jörgen Sigvardsson 3.93
Implementing VB/C# Style Properties in C++ Classes - Unedited
Updated: 24 Apr 2006  
VB.Net and C# offer property procedures that execute code when the value of a property is set or retrieved. With novel use of code, C++ classes can have them too!
VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Win2003, Visual Studio, Dev
Jeremy A. Wilson 3.92
Processor BenchMark Utility
Updated: 29 May 2008  
Measuring Processor Performance
C++ (VC6, VC7, VC7.1, VC8.0), C++/CLI, C
PeterGlen 3.92
Tips and Tricks for the Visual Studio .NET IDE
Updated: 3 Feb 2004  
A compendium of short cuts, tips and tricks, features, whatcha-may-callits for the Visual Studio .NET IDE.
Windows, Dev
SathishVJ 3.91
Reformatting Microsoft's wizard/template generated project files
Updated: 11 May 2002  
How to reformat Microsoft VC wizard template generated code so the generated code is more palatable
VC6, VC7Win2K, WinXP, Visual Studio, Dev
tfryar 3.80
Tips for Visual C++ Developers
Updated: 16 Sep 2002  
Series of tips for Visual C++ Developers
VC6Win2K, WinXP, Visual Studio, Dev
Ernest Laurentin 3.79
Tips on internationalization of software
Updated: 9 Sep 2002  
This article gives tips on internationalization of existing software
VC6Win2K, Visual Studio, Dev
Milind Shingade 3.77
QuickHex
Updated: 9 Mar 2000  
A Hex Viewer Shell Extension.
VC6, MFC, Dev
S h a n x 3.75
Using SSE/SSE2 for optimization
Updated: 3 Oct 2004  
A beginner's introduction to one of the optimization methods.
C, ASM, VC6Win2K, WinXP, Win2003, Dev
f2 3.75
The Story of Const
Updated: 21 May 2003  
This is an article about the const keyword, its details and why you should worry about it.
C++, C, Windows, Visual Studio, Dev
Rahul Singh 3.73
Contrasting Colors
Updated: 4 May 2004  
New method of calculating a contrasting color for a given color
VC6, Windows, Dev
alucardx 3.71
Another Profiler for VC++
Updated: 26 Nov 2006  
A profiler which calculates the total and execution time elapsed for each function profiled
C++ (VC7.1), Windows (WinXP)VS.NET2003, Dev
S.C.Wong 3.71
Using Class Templates with Fake Parameters in Derived Classes. - Unedited
Updated: 21 Aug 2007  
An article provide new C++ idom to avoid code duplication.
VC7, VC7.1, VC8.0, Windows, Visual Studio, Dev
Alexei Valyaev 3.70
Stopping and Starting Services Automatically During Builds
Updated: 11 Mar 2008  
How to make your life a little easier while developing a service
C#, Windows, .NET, Win32, Win64, Visual Studio, Dev
mav.northwind 3.67
Fullname Tutorial Part 1
Updated: 14 Jul 2009  
How to extract the full name from an assembly including the public key token
C#, .NET
gbd77rc 3.67
Writing Maintainable Code
Updated: 13 Sep 2009  
Here I suggest some guidelines that all programmers, regardless of language, can follow to keep their code maintainable by others.
C# (C# 1.0, C# 2.0, C# 3.0, C# 4.0), Architect, Dev
Scott Norberg 3.62
Servex - using batch files for remote ftp
Updated: 14 Apr 2004  
Remote Commands on a Computer
Windows, Dev
David Q 3.58
Best Practices of Memory Usage - Unedited
Updated: 25 Jul 2009  
A discussion on Memory management in your program.
All Topics
Abhishek Sur 3.56
The Beginner's Guide to Using Enum Flags
Updated: 10 Jan 2009  
An article explaining the rudiments of how to deal with Flags in C++
C++, C, Windows, Visual Studio, Dev
toxcct 3.50
Memory Model, Memory Barrier and Singleton Pattern in .NET
Updated: 17 Jun 2009  
Explains Memory Model and ways to implement singleton pattern
C# (C# 1.0, C# 2.0, C# 3.0), .NET (.NET 3.0, .NET 3.5, .NET 4.0), Dev
RohitOn.Net 3.50
Hiding a combo's list after selection
Updated: 4 Jul 2002  
How to hide a combo's list after selection if the selection starts a long operation
VC6, VC7Win2K, WinXP, Visual Studio, MFC, Dev
Paul S. Vickery 3.46
GNU GPL for Dummies
Updated: 14 Apr 2008  
Synopsis of GPL v3 discussed in simple terms
All Topics, CEO, Architect, Dev, Design
TheBigRedDog 3.41
The Stupid XOR Trick
Updated: 13 Aug 2002  
Explaining the phenomenon of x^=y^=x^=y;
C++/CLI, VC6, VC7, Windows, .NET, Visual Studio, Dev
Andreas Saurwein Franci Gonçalves 3.37
Customizable Text with Replacement Variables
Updated: 3 Nov 2009  
An article on how to use text template with replacement variables in VBA
VB (VB 6), Windows, Office
byapparov 3.33
Application Terror
Updated: 28 May 2002  
How to (really) annoy your friends and foes or even your boss.
VC7Win2K, WinXP, Visual Studio, Dev
Andreas Saurwein Franci Gonçalves 3.31
Matrix/Vector Multiplication Optimization
Updated: 14 Sep 2005  
This article describes a way to make matrix vector multiplication faster.
VC6WinXP, Dev
aurelien400 3.29
Compressing and Uncompressing Files in Java
Updated: 7 Jan 2009  
In this article, I’ll show you how to compress and extract files easily in Java using ziputil.jar.
Java, Java
Thilina S Hasantha 3.25
Get the Start Button Handle
Updated: 23 Mar 2002  
Get the Start button handle and manage it.
VC6Win2K, WinXP, MFC, Dev
AFShin Dehghani 3.21
Tips and Traps for young programmers
Updated: 24 Apr 2003  
Kill your program before the user will do it! Traps techniques and VC++/C++ notes for beginners
VC6, VC7, VC7.1, Windows, Visual Studio, MFC, Dev
Brigsoft 3.19
Squeeze Sort: A New Sorting Technique
Updated: 18 Mar 2006  
This article presents a new sorting technique. According to a certain characteristic of the distribution of data elements, performance of sorting can be highly improved.
Windows, Dev
Mohammad Ashraful Alam 3.18
Fast Algorithm to check the numbers 2^n
Updated: 12 Dec 2002  
Optimised code for valid data length to FFT
C++, C, Windows, Visual Studio, Dev
zarzor 3.18
A Primitive Spellchecker in Microsoft C++ 6.0
Updated: 20 Apr 2003  
This article demonstates how to use Microsoft C++ as a spellchecker while programming by making excessive use of the user-defined keyword feature
VC6, VC7Win2K, WinXP, Visual Studio, MFC, Dev
ITSTH 3.17
Tips for Beginner when Creating First Desktop Application
Updated: 4 Jan 2009  
An article for beginners that describes that how can we apply form level validation and some common database functions
VB (VB 8.0, VB 9.0)WinXP, Vista
Rupesh Kumar Swami 3.13
How to send a user-defined message with SendMessage, PostMessage or PostThreadMessage
Updated: 21 Jan 2004  
How to send a user-defined message with SendMessage, PostMessage or PostThreadMessage
VC6, Windows, Visual Studio, Dev
Georg Bedenk 3.11
ComplexConverter - make configuration still more flexible - Unedited
Updated: 17 Apr 2008  
Converting complex Object-structures to string and reverse. Storing the result in an application-setting improves configurations flexibility substantially
VB (VB 8.0, VB 9.0), Windows (Win2K, WinXP, Win2003, Vista), .NET (.NET 2.0, .NET 3.0, .NET 3.5), WinForms
Mr.PoorEnglish 3.00
Set Audio Endpoints System Wide Vista/Windows 7
Updated: 26 Aug 2009  
An article on how to set system wide audio endpoints programmatically
C++, Windows, .NET (.NET 3.5), ASP.NET, Dev
Snoepie 3.00
MSBuild from Scratch
Updated: 13 May 2009  
An article on how to create a build file for MSBuild
.NET (.NET 3.5), Win32, Visual Studio (VS2008), Dev
Alejandro Miralles 3.00
Secure Coding Best Practices for Memory Allocation in C and C++
Updated: 17 May 2006  
Straight-to-the-point reckoner for avoiding security issues when allocating memory in C and C++ by Richard Lewis
C++, Windows, Visual Studio, Dev
Richard Lewis 2.98
Testing for Empty String
Updated: 21 Feb 2008  
A brief comparison of techniques of testing for empty strings
.NET, Dev
PIEBALDconsult 2.97
A function to retrieve the directory of a program
Updated: 24 Feb 2002  
A small function to retrieve the directory a program is being executed from
VC6Win2K, Visual Studio, MFC, Dev
Brad Bruce 2.89
Using Bounced E-mail Messages to Clean Your Address List - Unedited
Updated: 15 Jul 2002  
An easy and accurate way to use bounced messages to clean your address list.
Windows, Dev
John Alessi, Quiksoft Corporation 2.88
Implementing the __FUNCTION__ Macro in VC++ 6.0
Updated: 27 Mar 2006  
Tired of searching for the __FUNCTION__ macro to debug your apps in VC++ 6.0? Here's a little overkill to replicate it
VC6, Windows, Visual Studio, Dev
Tor2k 2.85
Removing debug information from .obj files
Updated: 3 May 2000  
A small program for removing debug information from object files that aids incrementally linking extremely large projects.
VC6, Visual Studio, MFC, Dev
Tibor Blazko 2.82
Grouping project files into folders
Updated: 19 Jan 2000  
A tip on organising your project files in the DevStudio Workspace window
VC6, Visual Studio, MFC, Dev
Jeremiah Talkar 2.81
Creating your own GUIDs
Updated: 17 Jul 2001  
A simple method of creating a unique name or identifier.
VC6Win2K, Visual Studio, MFC, Dev
Joseph M. Newcomer 2.80
Using FormatMessage
Updated: 4 Feb 2002  
An example of one of the most effective uses of the the call to FormatMessage
VC6, VC7Win2K, WinXP, Visual Studio, Dev
Joseph M. Newcomer 2.79
Detect and run the default mail client
Updated: 24 Sep 2002  
Programatically get the default mail client using registry
VC6Win2K, Visual Studio, Dev
Sardaukar 2.79
Use of PIMPL Design Pattern
Updated: 6 Feb 2007  
Explain why and how to use PIMPL
C++, Windows, Visual Studio, STL, Dev
Le Sourcier 2.75
The seven secrets of successful programmers
Updated: 20 Oct 2003  
7 tips to make you a better citizen in the developer community.
Windows, Dev
Duncan Edwards Jones 2.74
An Objective Analysis of Language Performance - 1) Math Functions - Unedited
Updated: 26 Apr 2008  
This article, the first of a series of articles, presents an objective analytical analysis of language performance for Java and C# .NET
C# (C# 2.0, C# 3.0), Windows (Win2K, WinXP, Win2003, Vista), .NET (.NET 2.0, .NET 3.0, .NET 3.5), Win32, Win64, Architect, Dev, Design
Derek Bartram 2.68
Programming Tips
Updated: 17 Feb 2003  
Tips to write useful code
VC6, VC7, Windows, Visual Studio, Dev
Gilad Novik 2.64
How Can I Get the Address of KeServiceDescriptorTableShadow
Updated: 26 May 2008  
Explain how to get the address of KeServiceDescriptorTableShadow
C++/CLI, C, VC6, VC7, VC7.1, VC8.0Win2K, WinXP, Vista
Try and try 2.60
Locking shareware functions
Updated: 18 Sep 2003  
This article describes how to lock some functions in a shareware product. Users can unlock them only after obtaining keyfile
VC6, VC7, VC7.1, Windows, Dev
Slava Archibasov 2.58
Create a SQL Database Programmatically
Updated: 24 Oct 2008  
In this article, I will explain how to use Microsoft SQL Management Objects (SMO) to create a Microsoft SQL database from C# code.
C# (C# 1.0, C# 2.0, C# 3.0), VB (VB 9.0), SQL, Windows (Win2K, WinXP, Win2003, Vista), Win Mobile, .NET (.NET 2.0, .NET 3.0, .NET 3.5), SQL Server (SQL 2005), Architect, DBA, Dev, QA, Design
Moustafar 2.56
Opening unsupported document types in Visual Studio .NET using IE
Updated: 2 Nov 2002  
This article explains how to use Internet Explorer add-ins to view documents that cannot be usually viewed from inside Visual Studio.
C#, VB, VC7.NET 1.0, Win2K, WinXP, ASP.NET, Visual Studio, Dev
Paul Reeder 2.53
Visual Studio Find/Replace Regular Expression Usage
Updated: 22 Mar 2007  
Find/Replace text in Visual Studio using regular expressions
Windows, Visual Studio, Dev
Mike Lang 2.52
Disable System Close Button on a Console Application
Updated: 6 Dec 2003  
This code is a simple way to disable the close button on a Windows Console Application. It can also be used to disable any of the system menu buttons
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, MFC, Dev
John L. DeVito 2.52
Simple Thoughts on Code Quality
Updated: 25 Sep 2008  
For the software itself, it is easier to discuss its quality by measuring its performance, memory usage, number of the bugs etc. But what if we talk about the code file, how can we write code that we are proud of.
All Topics, Architect, Dev, QA, Design
Kivanc Ozuolmez 2.50
Using UNION when porting a Fortran EQUIVALENCE code
Updated: 8 Mar 2003  
Using UNION when porting a Fortran EQUIVALENCE code.
VC6, Visual Studio, Dev
Gabor Kalman 2.45
C++ coding styles, ways to create solid code
Updated: 13 Feb 2001  
Samples of C++ coding styles that will help you to create solid code
VC6Win2K, Visual Studio, Dev
Ivan Martynov 2.42
How to Store and Retrieve a ConnectionString from a Web.Config or App.Settings File
Updated: 26 Mar 2009  
How to Store and Retrieve a ConnectionString from a Web.Config or App.Settings File
C# (C# 1.0, C# 2.0, C# 3.0), SQL, .NET (.NET 1.0, .NET 1.1, .NET 2.0, .NET 3.0), ASP.NET, SQL Server (SQL 2000, SQL 2005), ADO, ADO.NET, Ajax, Silverlight, DBA, Dev
Vuyiswa Maseko 2.41
Broadcast a message to multiple instances of an application
Updated: 30 Jun 2004  
Broadcast a message to multiple instances of an application
VC6, VC7, VC7.1, Windows, Dev
bijua2001 2.29
Adhoc Refactoring with Visual Studio's "Replace in Files"
Updated: 13 Apr 2009  
One of my favorite refactoring tools is Visual Studio's "Replace in Files" dialog
C# (C# 2.0, C# 3.0), Windows, Visual Studio, Architect, Dev, QA
conanc 2.25
GetVersionEx API for Windows Millenium Edition
Updated: 14 Jul 2003  
Ever wondered why that GetVersion function reported your operating system was Windows 98, when infact it is indeed Windows ME?
VC6, VC7, VC7.1Win2K, WinXP, Win2003, Visual Studio, MFC, Dev
Griffter UK 2.20
Structure Bit Ordering : Using ntoh and hton when transfering data between different platforms
Updated: 11 Mar 2002  
Some traps to lookout when packing bits into a structure
VC6Win2K, Visual Studio, Dev
lucy 2.19
Bad coding Practices - Unedited
Updated: 16 Nov 2008  
Bad coding practices
C++, C++/CLI, C, C#, Dev, QA, Design
Gopi Krishna Nuti 2.05
va_list, va_start, va_pass!!! or how to pass variable-argument list to next va-function - Unedited
Updated: 29 Mar 2005  
trick to pass variable-argument list to next va-function
VC6, VC7.1, Windows, Visual Studio, Dev
araud 2.05
Development Inline Comment while working in team - Unedited
Updated: 23 Jan 2005  
Inline Development Comments Automation
SQL, Windows, Visual Studio, DBA, Dev
Jigar Mehta 2.04
Validating E-Mails & Phone Number - Unedited
Updated: 21 Feb 2002  
Routines to validate E-Mail addresses and Phone numbers
VC6, VC7Win2K, WinXP, Visual Studio, MFC, Dev
Brad Bruce 1.93
Take user's action within "loop forever"
Updated: 25 Dec 2002  
How to take user's action when your program is busy.
Dev
zarzor 1.93
Extreme Game Programming - Unedited
Updated: 19 Sep 2004  
A Smallest Game Demo Code
ASM, Windows, Dev
skywind3000 1.88
High color splash screen using the "Splash Screen Component" in VS
Updated: 24 May 2002  
How to create splash screens that display more than 256 colors
VC6Win2K, WinXP, Visual Studio, MFC, Dev
Rajesh Parikh 1.84
Mangling issues - VC 6.0 and VC 8.0 - Unedited
Updated: 24 Jun 2007  
Article talks about how mangling changes in VC++ 6.0 and VC 8.0 can cause problems in your existing application and how to solve the same.
VC6, VC8.0, Windows, MFC, VS2005, Dev
kris_raj 1.78
Cohesion of Methods
Updated: 14 Jul 2005  
This articles focuses on building your classes and the cohesion factors you need to keep in mind while writing programs.
VB, Windows, .NET, Visual Studio, Dev
Balamurali Balaji 1.77
Functor as event engine - Unedited
Updated: 8 Mar 2005  
Functor implementation. Event mechanism creation.
VC7.1Win2K, WinXPVS.NET2003, VS2005, Dev
araud 1.75
A minimal footprint performance monitor using windows messaging - Unedited
Updated: 24 Feb 2008  
In an unmanaged environment, using windows performance monitors may prove challenging, this article propose an alternative which is both easy and efficient.
C++, C#, VB, Windows, Win32, Architect, Dev
Tomer Doron 1.71
C# Image Download - Unedited
Updated: 3 Apr 2008  
How to easy download images from the web and save as bitmap supported format.
C# (C# 1.0, C# 2.0, C# 3.0)
ThunderDK 1.67
Software Architect Simple Way 1 of ?? - Unedited
Updated: 5 Oct 2008  
A series for simplifying the learning of software architecture
C++, C++/CLI, C# (C# 1.0, C# 2.0, C# 3.0), Windows (Win2K, WinXP, Win2003, Vista), Win Mobile (WinMobile2003, WinMobile5, WinMobile6), .NET 1.1, .NET 2.0, .NET 3.0, Win32, Win64, Visual Studio, STL, Architect, Dev, Design
The DevMan 1.64
Class function callback
Updated: 3 May 2005  
Shows how to make callback to functions within classes that are non-static.
C++/CLI, VC6, VC7, VC7.1, VC8.0, .NET, Win2K, WinXP, Win2003, Vista, Visual Studio, Dev
Tydia-kun 1.58
Run an executable as a windows service - Unedited
Updated: 8 Jul 2008  
Quick way to run an executable as a windows service
C++ (VC6, VC7, VC7.1, VC8.0), C++/CLI, C
Somen Shaw 1.50
How Web Crawlers Work - Unedited
Updated: 28 Nov 2006  
The principles of developing a web crawler
C++, C#, Windows, .NET, Visual Studio, Dev
Eran Aharonovich 1.49
The Way I See a DAL
Updated: 3 Jul 2008  
An article on designing a DAL in a personal way
C# (C# 2.0), Windows, .NET (.NET 3.0), Dev
strofo 1.32
Object Oriented Principles
Updated: 28 Sep 2004  
Explains object oriented principles
C++, Windows, Visual Studio, Dev
Milind Murlidhar Shingade 1.25
C++ Coding Culture - Part I - Unedited
Updated: 19 Apr 2005  
An article on C++ coding style, practices and discipline.
VC7.1Win2K, WinXPVS.NET2003, Dev
Vivek Ragunathan 1.25
Cost Reduced Swap - Unedited
Updated: 9 Dec 2006  
Swapping in C++
C++, Windows, Visual Studio, Dev
jeyakumarrr 1.10
Refactoring Switch Statements (Take 2) - Unedited
Updated: 2 Jul 2009  
How to refactor Switch statements.
C#, .NET, All Topics, Dev
emiaj 1.00
Cloud-Based Source Control using Live Mesh and Git - Unedited
Updated: 12 Jun 2009  
I’ve been working on a couple of projects recently where I’ve been storing the source in the cloud using Live Mesh so that I could access the solution from any of the PCs and laptops that litter the house. On the whole this approach has worked fairly well, although it results in a lot of changes thr
Windows, Visual Studio (VS2005, VS2008), All Topics
Derek Lakin  
CodeRush VS ReSharper - Unedited
Updated: 8 Sep 2009  
For anyone that's tried both - which do you prefer?I've seen a bunch of (out-dated) discussions on the web and there's even one on StackOverflow (here) from late last year but I'm not happy with the results.Scott Hanselman recently did a podcast on it with the tech lead of CodeRush and this is what
.NET, Visual Studio
Thiru Thirunavukarasu  
CodeRush VS ReSharper - Unedited
Updated: 9 Sep 2009  
To be honest, I gave up on all those sort of things a long time ago.  There was an add in for VC6 that was essential, but most of it's features got put into VS 2002, and after that, whatever I tried, added nothing I actually got into the habit of using, and they ALL made my system more unstable than
.NET, Visual Studio
Christian Graus  
CodeRush VS ReSharper - Unedited
Updated: 21 Sep 2009  
I'll agree with Christian. They just got in the way, I was constantly clicking away from the menus that popped up when I didn't need their help
.NET, Visual Studio
Mark Nischalke  

Programming Tips - Installers

top
Title / Updated Author Score  
Setup-Dialogs - Own BannerBitmap and SplashBitmap
Updated: 17 Mar 2009  
This article describes the lasting integration of own BannerBitmap and SplashBitmap
Windows (Vista), Visual Studio (VS2008), Design
Klaus Ruttkowski 4.33
gInstall & Mr Skinner
Updated: 1 May 2003  
Demonstrates how to create a skinned setup application using gInstall.
Win2K, WinXP, Win2003, Dev
Jonathan [Darka] 2.50

Programming Tips - Testing and Quality Assurance

top
Title / Updated Author Score  
Compiler Security Checks In Depth
Updated: 18 Feb 2002  
This paper discusses buffer overruns and the complete picture of the Microsoft® Visual C++® .NET security checks feature provided by /GS
VC7, Windows, Visual Studio, Dev
Brandon Bray (MSFT) 4.72
Writing NHibernate Level 2 Cache Usage Tests
Updated: 16 Jan 2009  
Writing NHibernate Level 2 caching related tests by utilizing a custom log4net appender.
C# (C# 1.0, C# 2.0, C# 3.0), Windows (Win2K, WinXP, Win2003, Vista), .NET (.NET 3.5), Visual Studio (VS2008), LINQ, Architect, Dev, QA
Ali Ozgur 4.64
From Mocks to Isolation - Unedited
Updated: 31 Oct 2008  
The article discusses how to isolate the code under test from behavior of referenced classes by using mocking frameworks
C# (C# 1.0, C# 2.0, C# 3.0), .NET (.NET 3.0, .NET 3.5), Visual Studio (VS2005, VS2008), Architect, Dev, QA
Vagif Abilov 4.61
Usability Testing (Chapter 1)
Updated: 19 Jan 2002  
An introduction to usability testing
Windows, Dev
Matt Gullett 4.60
Attach Debugger to NUnit using Macro
Updated: 4 Jul 2008  
Saves you some mouse clicks when debugging NUnit GUI
C# (C# 2.0).NET 2.0VS2005, Dev
ntr9h 4.50
Integrating Visual Studio Team System 2008 Unit Tests with CruiseControl.NET
Updated: 17 Apr 2008  
Explains how to integrate Visual Studio 2008 unit tests with the CCNET build process
C#, Windows, .NET, Visual Studio (VS2008), Architect, Dev, QA
chamindu 4.36
Setup a Test Project with NUnit and MonoDevelop
Updated: 24 Mar 2009  
How to set up an NUnit test project within MonoDevelop
C#, Dev, QA
Reese 4.00
Testing Private Members in Visual Studio - Unedited
Updated: 12 Jun 2009  
I’m currently working on a CommandBehaviour class to enable me to fire commands in response to arbitrary routed events on elements that don’t natively support commands, inspired by Sacha Barber’s post WPF: Attached Commands. Whilst trying to apply some unit tests to what I’m writing I came across t
C#, Windows, .NET, Visual Studio (VS2008), All Topics
Derek Lakin 4.00
Introduction to Mocking
Updated: 23 Oct 2008  
In this article we will explain mocking and different benefits that we can achieve by introducing mocking in our unit tests.
C#, Dev, QA
azamsharp 3.79
How to work with VSS through the VC++ 6.0 development environment
Updated: 6 Aug 2003  
Integrating Visual SourceSafe with Visual Studio
VC6Win2K, WinXP, Win2003, Visual Studio, Dev
Ashutosh R. Bhatikar 3.00
Driving or Automating GUI Applications
Updated: 14 May 2008  
GUI automation for the purpose of driving or controlling an application via its GUI
Windows (Win2K, WinXP, Win2003, Vista, TabletPC, Embedded), .NET (.NET 1.0, .NET 1.1, .NET 2.0, Mono, DotGNU, .NET 3.0, .NET 3.5), Win32, COM, Dev, QA, Design
daluu 2.36
Unit Testing starter - VS.NET 2008 - Unedited
Updated: 25 Jan 2008  
Article to get started with unit testing in VS.NET 2008
C# (C# 3.0), VB (VB 9.0), Windows, Visual Studio (VS2008), Dev
coolestCoder 2.21
The LOGIC Behind Mad MAX() - Unedited
Updated: 11 Mar 2008  
The SQL MAX() function is a little tricky when trying to work with numeric data - Not quite the same in other languages.
SQL, Windows, Win32, SQL Server (SQL 2000, SQL 2005, SQL CE), Visual Studio, DBA, Dev, QA, Design
Joe Negron 1.27

Last Updated 8 Nov 2009
Advertise | Privacy
Copyright © CodeProject, 1999-2009
All Rights Reserved. Terms of Use