Click here to Skip to main content
13,801,559 members

Best C++/MFC article of February 2011

This competition has ended

Contribute to CodeProject and you'll automatically be in the running for a monthly prize!

Each month at CodeProject we gather together the best of the articles submitted the previous month and ask our readers to choose the best of the best. Entry is automatic - just submit you articke and we'll do the rest.

Check out the submission guidelines for information on posting articles.

You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011

Current Entries

Articles that match the contest criteria are automatically entered.

1 Mar 2011
Tim Stevens
An updated version of the code in David A Jones' article "Memory Leak Detection"
1 Feb 2011
AlexCode
Image Sprites and CSS Classes creator
23 Feb 2011
gclass
At PDC 2009, Reed Townsend presented some very exciting multitouch samples in a presentation: Windows Touch Deep Dive. This blog covers the code behind of the custom 3D manipulations that were presented.
9 Feb 2011
Wolfgang_Baron
If you really have to put everything into a single function and want to keep the code analyzable and maybe want to be able put some common code at the end, you can always use a success variable. The code does not slow down, as the compiler optimizes the sequenced if-conditions away and produces...
9 Feb 2011
gclass
How to create Windows Touch Control Frameworks in C++ (PhotoStrip)
12 Feb 2011
ozkary
How to Deploy Files in Different Servers with Team Build
31 Jul 2015
Faustino Frechilla
A circular array based lock-free queue with no memory allocation on the heap and no ABA problem
21 Feb 2011
Michael Dunn
A tutorial that shows how to get started using the Ribbon in your applications
13 Feb 2011
Sergio Mach
Posting data to an Internet server made easy with a slick C/C++ class wrapping a call to Windows sockets.
10 Feb 2011
Tanvi K Shah, Steve H Davis
How to give your users a smooth scrolling experience with High Resolution Mouse Wheels
2 Feb 2011
Volodymyr Shamray, Apriorit Inc
In this article, I’m going to describe how to implement COM interface hooks.
27 Feb 2011
Mladen Janković
Implementing AI for the Target Number game using a genetic algorithm.
15 Oct 2012
Ludvik Jerabek
Supports getopt, getopt_long, and getopt_long_only and POSIXLY_CORRECT environment flag
26 Feb 2011
Adnan Boz
How to use CPU instructions in C# to gain performace
19 Nov 2013
Julijan Sribar
How to avoid flickering scrollbars that appear when resizing CListCtrl which has a last column with the LVSCW_AUTOSIZE_USEHEADER value set.
17 Aug 2011
Alexander Bessonov
Introduces a fast and type-safe parameter rendering library (type-safe printf)
15 Mar 2011
Roman Ginzburg
A generic source filter which exposes an interface for pushing downstream RGB samples of predefined size and frame rate, and can be used for any custom frame input scenario.
15 Mar 2011
Roman Ginzburg
A text overlay filter and a JPEG/JPEG2000 encoder using transform filters.
18 Feb 2011
Paul Heil
Discover how to calculate the processor usage of every running process in your Windows mobile device
2 Mar 2011
Francis Xavier Pulikotil
A safer alternative to void*, any_ptr can point to any type of object and provide type-safe, const-correct access to it.
11 Feb 2011
JimRL
Create a more robust glow with basic post processing
2 Feb 2011
Mukit, Ataul
This tip shows the technique of loading a 256 color bitmap into an image list
7 Feb 2011
Cristian Adam
This article presents a fix for SetUnhandledExceptionFilter to work with the CRT.
8 Feb 2011
Mukit, Ataul
A practical example of command pattern applied in a database application
1 Feb 2011
zebulon75018
Interactive Water Effect Multitouch with Tuio Library
13 Feb 2011
Vince Valenti
An example of how to add a checkbox to a list view column header. We also implement select/unselect all when a user toggles the checkbox.
13 Feb 2011
Visual-Eleven
An owner drawn CListBox, expands items to look like a CTreeCtrl
18 Mar 2011
zebulon75018
How to generate a complete UI by typing key of value of key in INI setting in QT
28 Feb 2011
Member 4694807
My favorite is a variant of alternative 2.{ ... DoInit(); status=DoAllActions(); DoCleanup(status); ...}int DoAllActions(){ if (condition1_fails) return status1; ... if (condition2_fails) return status2; ... if(conditionN_fails) ...
24 Feb 2011
Andriy Padalka
Module to dynamically assign, store, and call with handlers different functional objects: functors, functions, member functions.
7 Feb 2011
Jörgen Sigvardsson
Usually, gotos are used to clean up resources when exiting a function. I would recommend using the RAII[^] idiom. It also works works well in the presence of exceptions.For C# I would use IDisposable/using. If that's not possible, I'd use a finally clause to clean up.Everything else...
15 Feb 2011
ozkary
When there is a new version of a web service in a different URI, we usually just need to point to that new URl and get the new reference class for that service.
22 Feb 2011
csrss
Yet another but a little bit different INI files parser.
12 Feb 2011
csrss
This article describes creating and managing 1D, 2D and 3D string arrays
22 Feb 2011
Mukit, Ataul
1 alternative  
This tip shows how to simulate a key stroke in windows environment
27 Feb 2011
Roger65
Displaying big integers in dialogs.
25 Feb 2011
Ansas Bogdan
This shows you how to cast a Pointer to a Memberfunction to any Pointer Type you whish.
1 Feb 2011
abridges
Alternate 8, why not just do this:bool bFailed = true;// In case of an exception.try{ // while bFailed while (bFailed) { // do something here. if (condition1) { // exit the loop (goto) bFalse = false; ...
7 Feb 2011
sergiogarcianinja
As this piece of code is normally a function, should be more readable if all of it is put inside a function returning a bool, indicating success or failure.The cleanup function could be only resource deallocation, not a function at all. If it is intended to use with C++ or C#, a try..finally...
9 Feb 2011
Karl Phillip
If you are looking for a true transparent window to render your 3D objects, check this thread:http://stackoverflow.com/q/4052940/176769
You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011

Current Participants

Those with articles that match the contest criteria are automatically entered.

abridges
Web Developer
United States United States
No Biography provided
Adnan Boz
United States United States
I am an MCAD, MCSD, MCTS, MCPD, MCT and Certified CUDA Programmer.
You can find more technical articles on my blog at http://www.adnanboz.com.
Alexander Bessonov
Software Developer (Senior) HHD Software Ltd.
Russian Federation Russian Federation
No Biography provided
AlexCode
Architect
Switzerland Switzerland
Senior IT Consultant working in Switzerland as Senior Software Engineer.

Find more at on my blog.
Andriy Padalka
Software Developer (Senior)
Ukraine Ukraine
Now I'm working as a C++ developer and trainer and supporting
all my previously written applications.
Ansas Bogdan
Student
Germany Germany
No Biography provided
Cristian Adam
Software Developer
Germany Germany
Software engineer by day, Xiph.Org contributor by night.
csrss
Software Developer ORM
Poland Poland
codeceptive[at]gmail.com
Faustino Frechilla
Software Developer
Spain Spain
I am a software engineer who enjoys facing computer performance challenges and solving them through multi-threading and synchronisation.

I have always liked the free-software (or open-source for that matter) approach, and how it has been proved to be a way for improving our world and sharing knowledge while it's also possible to make a living out of it.

So far I had only tried to release into the free-software community a project about a board game I love: blokus (blockem.sourceforge.net). I've left the profit bit for some other project to come...
Francis Xavier Pulikotil
Software Developer
United States United States
Besides loving spending time with family, Francis Xavier likes to watch sci-fi/fantasy/action/drama movies, listen to music, and play video-games. After being exposed to a few video-games, he developed an interest in computer programming. He currently holds a Bachelor's degree in Computer Applications.
gclass
Web Developer Microsoft
United States United States
My name is Gus Class, I'm 29 years old, and I have been passionate about computers for my entire life. My first computer was an Apple IIgs and I begged my parents to get a PC (a 386!) around the time I had turned 7 or 8 which they begrudgingly caved in on. I came online for the first time in the early 90s through the Prodigy service which led me to the BBS scene and opened doors for learning the ins and outs of computing. I taught myself how to program in my teens, took vocational classes in high school on network administration through a magnet program, and earned a bachelor's degree in Computing and Software Systems through the University of Washington in 2003. In an effort to round out my education, I earned an MBA in 2008 while working full time at Microsoft.

I am currently a Content Project Manager at Microsoft where I have worked for the past 5 years. My work there has included writing sample code, creating compelling documentation to help developers adopt Windows features, managing sites, connecting with the developer audience through social media, mentoring and growing new hires and peers, developing tools to enhance productivity, and attending conferences as a Microsoft representative.

I enjoy a plethora of hobbies including rock climbing, DJing, electronic music production, recreational programming, creating web sites, playing and creating video games, and hanging out with social media mavens.
JimRL
Software Developer (Junior)
United States United States
No Biography provided
Jörgen Sigvardsson
Software Developer (Senior)
Sweden Sweden
I make software.
Julijan Sribar
Software Developer (Senior) Enghouse Interactive
Croatia Croatia
Graduated at the Faculty of Electrical Engineering and Computing, University of Zagreb (Croatia) and received M.Sc. degree in electronics. For several years he was research and lecturing assistant in the fields of solid state electronics and electronic circuits, published several scientific and professional papers, as well as a book "Physics of Semiconductor Devices - Solved Problems with Theory" (in Croatian).
During that work he gained interest in C++ programming language and have co-written "C++ Demystified" (in Croatian), 1st edition published in 1997, 2nd in 2001, 3rd in 2010, 4th in 2014.
After book publication, completely switched to software development, programming mostly in C++ and in C#.
In 2016 coauthored the book "Python for Curious" (in Croatian).
Karl Phillip
Software Developer
Brazil Brazil
No Biography provided
Ludvik Jerabek
Software Developer
United States United States
No Biography provided
Member 4694807
Germany Germany
No Biography provided
Michael Dunn
Software Developer (Senior) VMware
United States United States
Michael lives in sunny Mountain View, California. He started programming with an Apple //e in 4th grade, graduated from UCLA with a math degree in 1994, and immediately landed a job as a QA engineer at Symantec, working on the Norton AntiVirus team. He pretty much taught himself Windows and MFC programming, and in 1999 he designed and coded a new interface for Norton AntiVirus 2000.
Mike has been a a developer at Napster and at his own lil' startup, Zabersoft, a development company he co-founded with offices in Los Angeles and Odense, Denmark. Mike is now a senior engineer at VMware.

He also enjoys his hobbies of playing pinball, bike riding, photography, and Domion on Friday nights (current favorite combo: Village + double Pirate Ship). He would get his own snooker table too if they weren't so darn big! He is also sad that he's forgotten the languages he's studied: French, Mandarin Chinese, and Japanese.

Mike was a VC MVP from 2005 to 2009.
Mladen Janković
Software Developer
Serbia Serbia
No Biography provided
Mukit, Ataul
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1
ozkary
Architect OG-BITechnologies
United States United States
Paul Heil
Software Developer (Senior) An engineering firm in Cedar Rapids, Iowa
United States United States
I'm also on the MSDN forums
http://social.msdn.microsoft.com/profile/paulh79
Rafael Akchurin
Web Developer
Russian Federation Russian Federation
No Biography provided
Roger65
United States United States
No Biography provided
Roman Ginzburg
Software Developer (Senior)
Israel Israel
No Biography provided
Sergio Mach
Software Developer (Senior)
Portugal Portugal
Financial Apps addict since early programming ages;
Statistical Apps writer;
Computer gamming and graphics programmer with a 2 commercial titles: Armor PC/PPC, MidWay XBOX/PC/PPC;
Manic Basketball fan and player;
Traveller;
No Biography provided
Tanvi K Shah
Logitech Corporation
United States United States
No Biography provided
Tim Stevens
Software Developer (Senior)
United Kingdom United Kingdom
No Biography provided
Vince Valenti
United States United States
No Biography provided
Visual-Eleven
Software Developer (Senior)
China China
No Biography provided
Volodymyr Shamray
Software Developer (Senior) Apriorit Inc
Ukraine Ukraine
No Biography provided
Wolfgang_Baron
Technical Lead private interest
Germany Germany
No Biography provided
zebulon75018
Software Developer (Senior) http://www.cmb-soft.com/
France France
No Biography provided
You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011
You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011
You must sign in to participate in this contest.
This contest has ended.
1 Feb - 28 Feb 2011

Advertise | Privacy | Cookies | Terms of Service
Web03 | 2.8.181215.1 | Last Updated 1 Feb 2011
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid