Millions of members and growing! (5,833 online);
Email Password   helpLost your password?
Announcements




Search    
Advanced Search
Sitemap
Programming Tips

General Programming » Programming Tips

Contents

Programming Tips - Design and Strategy

top
Title / Updated Author Score  
PomDemo 1.0 - an object model construction demonstration
Updated: 30 May 2003
A pattern for simplifying the building of applications supporting undo/redo, applications with complex dialogs and distributed applications
PeterAnsell 4.33
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
Danny Ruijters 3.87
Generate an XML parser automatically
Updated: 1 Jun 2004
An article on XML parser or code generation automatically.
Albert Wang 3.64
Another use of SEH
Updated: 18 Jun 2004
How to use SEH to supply a parameter to a function.
valdok 3.43
Developing applications that always decease gracefully.
Updated: 10 Sep 2003
An article that describes how to write applications that always quit gracefully.
Jagadeesh VN 3.09
Reliable Floating Point Equality Comparison
Updated: 5 Dec 2006
Compare floating point numbers for equality at programmer-specified precision.
John Simmons / outlaw programmer 2.71
Defense against the dreaded Klingon Battlecruiser
Updated: 16 Apr 2004
An article about application users and their perception.
Bamaco2 2.48
Debugging Windows Service whitout deploying it - Unedited
Updated: 10 Dec 2007
This article decribes an easy way to debug Windows Services without having to deploy it.
.NET 2.0, C# 1.0, C# 2.0, .NET 3.0, C# 3.0, .NET 3.5, C#, .NET, Dev, Beginner
Eric De Carufel 3.75
 

Programming Tips - General

top
Title / Updated Author Score  
10 Minutes to document your code
Updated: 20 Jan 2003
Setting up doxygen, a free tool to document your code, in a few simple steps.
peterchen 4.79
Programming the MS Agent Control
Updated: 4 Mar 2000
Programming an animated agent similar to the office assistant.
Santosh Rao 4.78
A Utility to Clean Up Compiler Temp Files
Updated: 25 Dec 2002
A shell extension that deletes compiler temp and intermediate files.
Michael Dunn 4.73
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
Nishant Sivakumar 4.73
Playing with the stack
Updated: 28 May 2003
An article describing how a C++ compiler uses the stack.
Chavdar Dimitrov 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
Silviu Simen 4.69
VSS: protocol handler for Visual SourceSafe
Updated: 28 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.
Victor Vogelpoel 4.69
ResSwitch & ResList v1.2 - Easily change screen resolution
Updated: 4 Mar 2000
2 freeware utilities to quickly change Screen Depth and Resolution.
PJ Naughter 4.66
Optimization: Your Worst Enemy
Updated: 13 Aug 2000
Learn about the potential pitfalls of code optimization.
Joseph M. Newcomer 4.65
Whole Program Optimization with Visual C++ .NET
Updated: 11 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.
Brandon Bray (MSFT) 4.63
Aggressive Optimizations for Visual C++
Updated: 27 Oct 2002
Save time and space in your release builds - fight bloatware!
Todd C. Wilson 4.61
Importing Type Libraries
Updated: 24 Feb 2003
Using alternatives to importing type libraries and COM objects can improve the portability of your source code.
Heath Stewart 4.60
Extracting Accelerators As Human Readable Text
Updated: 25 Aug 2004
This article shows how to extract accelerators and convert them into human readable text, using the language settings for the current user.
Joergen Sigvardsson 4.57
Visual Studio .NET- Old style member function wizard
Updated: 24 Jul 2002
Modifies the new VS7 Member Function wizard to add a member function without using the parameter list
Moritz Leutenecker 4.57
Find in CWebBrowser Control
Updated: 11 Aug 2000
How to display the "Find" window in a CWebBrowser control.
Jeremy Davis 4.53
Compiling and Integrating Crypto++ into the Microsoft Visual C++ Environment
Updated: 2 Dec 2007
Avoid Common Pitfalls when Using Crypto++ and VC++
VC6, VC7, VC7.1, VC8.0, Win95, Win98, WinME, NT4, Win2K, WinXP, Win2003, VS.NET2002, VS.NET2003, VS2005, VS6, Dev, Beginner
Garth J Lancaster, Jeffrey Walton 4.51
Using templates for initialization
Updated: 14 Feb 2001
Use templates to initialize structures or simple member variables.
Paul Westcott 4.50
Compiler's Code Optimization - The Dark Side
Updated: 26 Jun 2003
How compiler's code optimization models works and mixing its to create an hybrid optimization model.
Marcelo A. B. Slomp 4.49
Automated Source Safe Backups
Updated: 21 Feb 2001
A scripted approach to automating Visual Source Safe backups
Conor Hunt 4.49
Building Boost libraries for Visual Studio
Updated: 18 Jul 2007
Building boost libraries for Visual Studio.
Gast128 4.48
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
Nishant Sivakumar 4.48
Some Time-Saving Commands and Key Remappings for the VC IDE
Updated: 18 Mar 1999
Save time and impress co-workers with these great keyboard shortcuts
Michael Dunn 4.47
Syntax coloring for user-defined keywords in Visual Studio
Updated: 21 Mar 2000
A UserType.dat file that provides syntax coloring for user-defined keywords in Visual Studio
Keith Kudlac 4.46
Learning Binary and Hexadecimal
Updated: 6 Mar 2006
A beginner's guide to talking like a computer.
Jeremy Falcon 4.45
How to accurately detect if an application is theme-enabled?
Updated: 2 Jun 2005
Describes a function that overcomes the inadequacies of IsAppThemed and IsThemeActive.
Nishant Sivakumar 4.44
The Right Way To Do Object Serialization
Updated: 16 May 2001
A tip for using object serialization
Leo Moll 4.42
Syntax Colouring for VBScript in Visual Studio 6
Updated: 1 Jan 2002
A simple registry modification to make Visual Studio apply syntax colouring to VBScript files.
Gavin Greig 4.41
Fixing the GPF in Devshl.dll when starting VC++ 5 or 6
Updated: 18 Jan 2000
Having problems with Devshl.dll? Don't reinstall Visual Studio until you've read this!
Sean Echevarria 4.39
A Utility for Browsing Directly to a Microsoft Knowledge Base Article
Updated: 4 Apr 2001
A utility that lets you browse to a MS Knowledge Base article right from the Run dialog
Michael Dunn 4.39
Introducing Regular Expressions
Updated: 8 Apr 2005
Basic Regular Expressions with detailed examples.
Vasant Raj 4.38
Secure Coding Practices: Running with Least Privileges in Windows
Updated: 9 Mar 2003
An article on developing software while running with least privileges in Windows
Dana Epp 4.38
.NET like Delegates in Unmanaged C++
Updated: 27 Sep 2002
This article describes a design pattern on how to implement generic delegates as found in .NET, but using ordinary/unmanaged C++
Joergen Sigvardsson 4.31
VS IDE Editor Tip: Quick Macros
Updated: 16 Oct 2002
VS Editor Tip: How to use Quick Macros
Paul Watt 4.29
The Groovyness of the Gallery
Updated: 12 Feb 2003
An article on using the Gallery to resuse classes.
bryce 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
Jörg Anslik 4.18
How to use the res: protocol in Developer Studio
Updated: 26 Mar 2000
A simple MFC demo application that demonstrates using the res: protocol to use resources in your applications
Santosh Rao 4.14
The Graphical Developer Interface
Updated: 17 May 2000
Learn effective methods for logging and debugging your Windows apps.
Joseph M. Newcomer 4.14
To new is C++; To malloc is C; To mix them is sin
Updated: 30 Mar 2004
Article explains the differences between malloc/free and new/delete in a C++ context
Nishant Sivakumar 4.09
How Yahoo! speeds up your application
Updated: 1 Mar 2006
How accessing the Yahoo! Finanace page sppeds up your application.
Bill Gu 4.04
Reduce the Size of Your Final EXE File
Updated: 8 Jun 2000
This article describes ways to reduce the final size of your applucation's EXE file.
Rehan Nadeem 4.03
The Importance of Sequence Order in the Creation of C++ Objects.
Updated: 29 Aug 2004
This article demonstrates the importance of the sequence order of object creation in C++
Lim Bio Liong 4.00
About RSS
Updated: 26 Apr 2005
What is RSS and how it is used to retrieve information.
Vasant Raj 4.00
Lovely Pointers
Updated: 6 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.
Brigsoft 3.97
Transparent desktop icons
Updated: 30 Dec 2004
A brief discussion on what is involved in making the text background of the desktop icons transparent.
DavidCrow 3.97
Tips and Tricks for the Visual Studio .NET IDE
Updated: 4 Feb 2004
A compendium of short cuts, tips and tricks, features, whatcha-may-callits for the Visual Studio .NET IDE.
SathishVJ 3.86
QuickHex
Updated: 10 Mar 2000
A Hex Viewer Shell Extension.
S h a n x 3.82
Reformatting Microsoft's wizard/template generated project files
Updated: 12 May 2002
How to reformat Microsoft VC wizard template generated code so the generated code is more palatable
tfryar 3.80
Using SSE/SSE2 for optimization
Updated: 3 Oct 2004
A beginner's introduction to one of the optimization methods.
f2 3.79
Tips on internationalization of software
Updated: 10 Sep 2002
This article gives tips on internationalization of existing software
Milind Shingade 3.77
Tips for Visual C++ Developers
Updated: 17 Sep 2002
Series of tips for Visual C++ Developers
Ernest Laurentin 3.74
The Story of Const
Updated: 22 May 2003
This is an article about the const keyword, its details and why you should worry about it.
Rahul Singh 3.73
Contrasting Colors
Updated: 5 May 2004
New method of calculating a contrasting color for a given color
alucardx 3.65
Servex - using batch files for remote ftp
Updated: 15 Apr 2004
Remote Commands on a Computer
David Q 3.58
Hiding a combo's list after selection
Updated: 5 Jul 2002
How to hide a combo's list after selection if the selection starts a long operation
Paul S. Vickery 3.46
Application Terror
Updated: 29 May 2002
How to (really) annoy your friends and foes or even your boss.
Andreas Saurwein Franci Gonalves 3.39
The Stupid XOR Trick
Updated: 14 Aug 2002
Explaining the phenomenon of x^=y^=x^=y;
Andreas Saurwein Franci Gonalves 3.37
Matrix/Vector Multiplication Optimization
Updated: 14 Sep 2005
This article describes a way to make matrix vector multiplication faster.
aurelien400 3.29
Tips and Traps for young programmers
Updated: 25 Apr 2003
Kill your program before the user will do it! Traps techniques and VC++/C++ notes for beginners
Brigsoft 3.19
Get the Start Button Handle
Updated: 24 Mar 2002
Get the Start button handle and manage it.
AFShin Dehghani 3.18
Fast Algorithm to check the numbers 2^n
Updated: 13 Dec 2002
Optimised code for valid data length to FFT
zarzor 3.18
How to send a user-defined message with SendMessage, PostMessage or PostThreadMessage
Updated: 22 Jan 2004
How to send a user-defined message with SendMessage, PostMessage or PostThreadMessage
Georg Bedenk 3.05
A function to retrieve the directory of a program
Updated: 25 Feb 2002
A small function to retrieve the directory a program is being executed from
Brad Bruce 2.89
Removing debug information from .obj files
Updated: 4 May 2000
A small program for removing debug information from object files that aids incrementally linking extremely large projects.
Tibor Blazko 2.82
Grouping project files into folders
Updated: 20 Jan 2000
A tip on organising your project files in the DevStudio Workspace window
Jeremiah Talkar 2.81
Creating your own GUIDs
Updated: 18 Jul 2001
A simple method of creating a unique name or identifier.
Joseph M. Newcomer 2.80
Detect and run the default mail client
Updated: 25 Sep 2002
Programatically get the default mail client using registry
Sardaukar 2.79
The seven secrets of successful programmers
Updated: 21 Oct 2003
7 tips to make you a better citizen in the developer community.
Duncan Edwards Jones 2.74
Locking shareware functions
Updated: 19 Sep 2003
This article describes how to lock some functions in a shareware product. Users can unlock them only after obtaining keyfile
Slava Archibasov 2.58
Programming Tips
Updated: 18 Feb 2003
Tips to write useful code
Gilad Novik 2.55
Opening unsupported document types in Visual Studio .NET using IE
Updated: 3 Nov 2002
This article explains how to use Internet Explorer add-ins to view documents that cannot be usually viewed from inside Visual Studio.
Paul Reeder 2.53
Disable System Close Button on a Console Application
Updated: 7 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
John L. DeVito 2.51
Using FormatMessage
Updated: 5 Feb 2002
An example of one of the most effective uses of the the call to FormatMessage
Joseph M. Newcomer 2.50
Using UNION when porting a Fortran EQUIVALENCE code
Updated: 9 Mar 2003
Using UNION when porting a Fortran EQUIVALENCE code.
Gabor Kalman 2.45
C++ coding styles, ways to create solid code
Updated: 14 Feb 2001
Samples of C++ coding styles that will help you to create solid code
Ivan Martynov 2.39
Broadcast a message to multiple instances of an application
Updated: 1 Jul 2004
Broadcast a message to multiple instances of an application
bijua2001 2.29
GetVersionEx API for Windows Millenium Edition
Updated: 15 Jul 2003
Ever wondered why that GetVersion function reported your operating system was Windows 98, when infact it is indeed Windows ME?
MrLeeGriffiths 2.25
Structure Bit Ordering : Using ntoh and hton when transfering data between different platforms
Updated: 12 Mar 2002
Some traps to lookout when packing bits into a structure
lucy 2.19
Take user's action within "loop forever"
Updated: 26 Dec 2002
How to take user's action when your program is busy.
zarzor 1.93
High color splash screen using the "Splash Screen Component" in VS
Updated: 25 May 2002
How to create splash screens that display more than 256 colors
Rajesh Parikh 1.88
Class function callback
Updated: 3 May 2005
Shows how to make callback to functions within classes that are non-static.
Tydia-kun 1.58
Object Oriented Principles
Updated: 28 Sep 2004
Explains object oriented principles
Milind Murlidhar Shingade 1.26
Object oriented JavaScript class library in C#/.NET style - Unedited
Updated: 12 Dec 2007
JavaScrip classes ported from .NET
.NET 1.0, .NET 1.1, .NET 2.0, IE 4+ DHTML, Gecko DHTML, Mono, DotGNU, .NET 3.0, .NET 3.5, ASP, ASP.NET, JScript, CSS, .NET, HTML, XHTML, WebForms, AJAX, Intermediate, Advanced
EJocys 4.97
Visual C++ 2003 Meyers singleton bug - Unedited
Updated: 7 Jun 2007
A description of a bug in the Visual C++ 2003 compiler and a workaround.
Stephen Boissiere 4.67
General Policy Idiom - Unedited
Updated: 31 Jan 2007
The article describes an idiom which can help to create highly customizable template library in C++ by applying immense level of parameterization.
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
ThatsAlok 4.65
Superior container classes. Smaller, faster, flexible, convenient. - Unedited
Updated: 9 Dec 2007
Alternative containers classes implementation, different approach.
C++, Windows, VS, Dev, Advanced
valdok 4.39
C++ Development using eclipse IDE– Starters guide - Unedited
Updated: 25 May 2006
C++ Development using eclipse IDE– Starters guide
Boby Thomas P 4.39
How to place complex class with dynamic array in continuous memory block - Unedited
Updated: 22 Oct 2007
Article describes way to place complex class containing dynamic array with non-trivial members in continuous memory block.
Kirill V. Lyadvinsky 4.25
C++ Static Initialisation Order: A new solution to an old problem - Unedited
Updated: 26 May 2007
Presents an easy method to control order of initialisation for static objects
Matthew Faithfull 4.03
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!
Jeremy A. Wilson 3.92
Using Class Templates with Fake Parameters in Derived Classes. - Unedited
Updated: 22 Aug 2007
An article provide new C++ idom to avoid code duplication.
Alexei Valyaev 3.70
Another Profiler for VC++ - Unedited
Updated: 26 Nov 2006
A profiler which calculates the total and execution time elapsed for each function profiled
S.C.Wong 3.67
The beginner's guide to using enum Flags - Unedited
Updated: 1 Mar 2007
An article explaining the rudiments of how to deal with Flags in C++
toxcct 3.66
Using Bounced E-mail Messages to Clean Your Address List - Unedited
Updated: 16 Jul 2002
An easy and accurate way to use bounced messages to clean your address list.
John Alessi, Quiksoft Corporation 3.27
A primitve Spellchecker in MS-C++ 6.0 - Unedited
Updated: 21 Apr 2003
This article demonstate how to use the MS-C++ as a spellchecker while programming by making excessive use of the user-defined keyword feature.
ITSTH 3.17
Squeeze Sort: A New Sorting Technique - Unedited
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.
Mohammad Ashraful Alam 3.11
Secure Coding Best Practices for Memory Allocation in C and C++ - Unedited
Updated: 18 May 2006
Straight-to-the-point reckoner for avoiding security issues when allocating memory in C and C++ by Richard Lewis.
Richard Lewis 2.98
Implementing the __FUNCTION__ macro in VC++ 6.0 - Unedited
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
Tor2k 2.83
Use of PIMPL design pattern - Unedited
Updated: 6 Feb 2007
Explain why and how to use PIMPL
Le Sourcier 2.79
Visual Studio Find/Replace Regular Expression usage - Unedited
Updated: 22 Mar 2007
Find/Replace text in visual studio using regular expressions.
Mike Lang 2.65
Effective Coding: Reducing memory allocation/deallocation - Unedited
Updated: 27 Apr 2007
This article describes how you can effectively allocate a multi-dimensional array in C++.
Vahid Kazemi 2.05
Development Inline Comment while working in team - Unedited
Updated: 24 Jan 2005
Inline Development Comments Automation
Jigar Mehta 2.04
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
araud 1.97
Validating E-Mails & Phone Number - Unedited
Updated: 22 Feb 2002
Routines to validate E-Mail addresses and Phone numbers
Brad Bruce 1.93
Extreme Game Programming - Unedited
Updated: 20 Sep 2004
A Smallest Game Demo Code
skywind3000 1.86
Mangling issues - VC 6.0 and VC 8.0 - Unedited
Updated: 25 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.
kris_raj 1.78
Functor as event engine - Unedited
Updated: 8 Mar 2005
Functor implementation. Event mechanism creation.
araud 1.75
How Web Crawlers Work - Unedited
Updated: 28 Nov 2006
The principles of developing a web crawler
Eran Aharonovich 1.58
Cohesion of Methods - Unedited
Updated: 14 Jul 2005
This articles focuses on building your classes and cohesion factors you need to keep in mind while writing programs
Balamurali Balaji 1.28
C++ Coding Culture - Part I - Unedited
Updated: 20 Apr 2005
An article on C++ coding style, practices and discipline.
Vivek Ragunathan 1.19
Cost Reduced Swap - Unedited
Updated: 9 Dec 2006
Swapping in C++
jeyakumarrr 1.10
 

Programming Tips - Installers

top
Title / Updated Author Score  
gInstall & Mr Skinner
Updated: 2 May 2003
Demonstrates how to create a skinned setup application using gInstall.
Jonathan [Darka] 2.29
 

Programming Tips - Testing and Quality Assurance

top
Title / Updated Author Score  
Compiler Security Checks In Depth
Updated: 19 Feb 2002
This paper discusses buffer overruns and the complete picture of the Microsoft® Visual C++® .NET security checks feature provided by /GS
Brandon Bray (MSFT) 4.48
Usability Testing (Chapter 1)
Updated: 20 Jan 2002
An introduction to usability testing
Matt Gullett 4.31
How to work with VSS through the VC++ 6.0 development environment
Updated: 7 Aug 2003
Integrating Visual SourceSafe with Visual Studio
Ashutosh R. Bhatikar 3.00
 

Last Updated 12 Dec 2007
Advertise | Privacy
Copyright © CodeProject, 1999-2007
All Rights Reserved. Terms of Use