Click here to Skip to main content
15,886,083 members
This competition has ended

Best C++ article of October 2011

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.

Current Entries

Articles that match the contest criteria are automatically entered.

Please Sign up or sign in to vote.
28 Oct 2011Philippe Mori
The original solution has many flaws. Arguments and return types are not what they should be in most cases (by value vs. by reference and also for the constness). No code reuse and also some operators are not doing what would be intuitive like the unary minus.Information here is much more...
Please Sign up or sign in to vote.
4 Oct 2011Nick Kulikovsky
There is ATL CWindow method CenterWindow:void CenterWnd(HWND hWnd){ CWindow wnd; wnd.Attach(hWnd); wnd.CenterWindow(NULL); wnd.Detach();}
Please Sign up or sign in to vote.
20 Oct 2011Reiss
How about this one line command for MS-DOS?for /f %a IN ('dir /b *.txt') do attrib %a -RSee: attrib command[^]andhow to write a dos batch file to loop through files[^]
Please Sign up or sign in to vote.
30 Oct 2011steveb
In UNICODE:CString str = L"Test";std::wstring ws(str);std::string s;s.assign(ws.begin(), ws.end());
Please Sign up or sign in to vote.
6 Oct 2011Roger Doss
An article on bounded memory buffer Sieve of Erastophenes
Please Sign up or sign in to vote.
12 Oct 2011CashCow2
The correct way to do this in C++ is to invoke some form of RAII whereby the failure logic happens automatically in an object's destructor.class CleanupObject{public: CleanupObject() : successState( false ) { } void completedOk() { successState = false;...
Please Sign up or sign in to vote.
27 Oct 2011Vasil Bachvarov
This article explains how to create a dynamic library that loads exported functions the first time they are used, opposed to loading them when the library is loaded.
Please Sign up or sign in to vote.
28 Oct 2011Dharmateja Challa
This is a continuation article for a key value store.
Please Sign up or sign in to vote.
15 Nov 2011Mitendra Anand
How to implement COM connection point callback for a C++\CLI client.
Please Sign up or sign in to vote.
16 Jan 2013Ajay Vijayvargiya
Covering the nitty-gritties of C++ templates.
Please Sign up or sign in to vote.
17 Oct 2011Jose A Pascoa
This article deals with building a standalone 64-bit .NET .exe file that is statically linked with an Assembly Language compiled object file.
Please Sign up or sign in to vote.
7 Dec 2014Julijan Sribar
CEdit derived control with additional editing options and multilevel undo/redo.
Please Sign up or sign in to vote.
22 Oct 2011Basil_2 1 alternative  
A few uncommon code sample
Please Sign up or sign in to vote.
18 Oct 2011Nish Nishant
An introduction to using WinRT databinding with Visual C++
Please Sign up or sign in to vote.
7 Jun 2012AndyUk06
A recursive algorithm to find all paths between communicating network nodes.
Please Sign up or sign in to vote.
2 Dec 2011ErnestoNet
Program to find all the solutions to a Pentomino puzzle.
Please Sign up or sign in to vote.
4 Oct 2011AVIDeveloper
An XML/XSLT based solution for auto-generating API and code.
Please Sign up or sign in to vote.
8 Oct 2011Jose A Pascoa
Still struggling to find the ultimate COFF to OMF converter to link some code with Delphi? You don't need to anymore.
Please Sign up or sign in to vote.
24 Jun 2012JJMatthews
Screenshot Tool
Please Sign up or sign in to vote.
25 Sep 2012Palavos
An example of how to program in assembly by using Visual Studio 2010 or 2012
Please Sign up or sign in to vote.
3 Dec 2011Sergey Chepurin
Advantages and drawbacks of using templates in C++ projects
Please Sign up or sign in to vote.
19 Oct 2011headmyshoulder
odeint v2 - Solving ordinary differential equations in C++
Please Sign up or sign in to vote.
24 Oct 2011Michael Chourdakis
Embed flash to your applications and communicate with it with C++.
Please Sign up or sign in to vote.
12 Oct 2011Roger65 2 alternatives  
tip
Please Sign up or sign in to vote.
13 Oct 2011Doug Richards
Simple test programs designed to demonstrate performance issues with the .NET serial port interface and what might be done to improve things.
Please Sign up or sign in to vote.
18 Oct 2011egladysh
Using the Call Gate idiom to reduce number of boolean flags and state variables.
Please Sign up or sign in to vote.
9 Oct 2011integrated ideas
This is a simulation model demonstrating the working of Multipath MANET routing with Entropy as cost Metric
Please Sign up or sign in to vote.
27 Oct 2011Dharmateja Challa
Key value store
Please Sign up or sign in to vote.
24 Oct 2011Roger Doss
An article on a C++ matrix class
Please Sign up or sign in to vote.
3 Oct 2011Member 8279879
Example how to integrate your app with the Nex Gen Media Server streaming framework.
Please Sign up or sign in to vote.
3 Oct 2011Adrabi Abderrahim
Simple C genetic algorithm example

Current Participants

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

Technical Lead
Morocco Morocco
Adrabi!, Just another Ghost in the Shell =)
Software Developer (Senior)
India India
Started programming with GwBasic back in 1996 (Those lovely days!). Found the hidden talent!

Touched COBOL and Quick Basic for a while.

Finally learned C and C++ entirely on my own, and fell in love with C++, still in love! Began with Turbo C 2.0/3.0, then to VC6 for 4 years! Finally on VC2008/2010.

I enjoy programming, mostly the system programming, but the UI is always on top of MFC! Quite experienced on other environments and platforms, but I prefer Visual C++. Zeal to learn, and to share!
Software Developer http://technical-recipes.com
United Kingdom United Kingdom
Software Engineer who has worked on projects in telecommunications, industrial robotics and image processing.

My home page is http://technical-recipes.com
Software Developer (Senior)
Israel Israel
Developing software since 1994 (or so Smile | :) )
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior) EMC
India India
I have worked in ESM, Storage and Embedded domains. Mainly taken part in design, coding and maintaining in c/c++ on windows.
As a hobby tinkering with embedded/electronic devices (new found interestSmile | :) )...
Software Developer Dotric Pty Ltd
Australia Australia
Doug graduated from Deakin University Geelong, Victoria, Australia with a Bachelor of Engineering.

Early in his career, Doug worked on an automated system for testing telephone lines. This system used a network of DEC PDP11s. The software was written in Oregon Pascal with an event driven structure. This early involvement in event driven structures proved to be an invaluable stepping stone into Windows programming some years latter.

Doug completed a Graduate Diploma in Education at La Trobe University to become a qualified secondary school Mathematics and Physics teacher. Subsequent IT contracts were with universities. One such contract was to add functionality to MSN Messenger.

In recent times Doug has been working on database and Android applications.
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer
Argentina Argentina
System developer from Argentina.

Programmed in VB 5,6,.NET, C#, Java, PL-SQL, Transac-SQL, C, C++ and even some "calculator" language.

Love to build small, useful applications.
Usually building big and complicated apps based on solid, reliable components.

Hobbies: reading, photography, chess, paddle, running.
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
CEO Integrated Ideas
India India
I am the founder and CEO of an startup company http://www.grasshoppernetwork.com , a Knowledge sharing portal for intellects. I have developed various applications and web based and stand alone projects in C#.Net, Omnet++, Java, Matlab, VHDl,OpenCV.
Software Developer
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
AtelierWeb Software
Portugal Portugal
Jose Pascoa is the owner of AtelierWeb Software (http://www.atelierweb.com). We produce security and network software and mixed utilities since 1999. The first program I published (in a BBS) was a MS-DOS utility, had the size of 21 KB and was done in Assembly Language. Nowadays, my low level languages are more likely to be "C", "C++" and "Delphi" rather than Assembly Language but I still like it. I have nothing against more fashionable languages like C# and technologies like WPF, actually I have played with them and published software with them.
Software Developer (Senior)
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).
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer
Greece Greece
I'm working in C++, PHP , Java, Windows, iOS, Android and Web (HTML/Javascript/CSS).

I 've a PhD in Digital Signal Processing and Artificial Intelligence and I specialize in Pro Audio and AI applications.

My home page: https://www.turbo-play.com
Architect
India India
My name is Mitendra Anand and my work is focused around application development which includes a lot of prototyping of new solutions.

While I have a background in C++/VC++ programming, my daily work is mostly spent in C++, Sybase, SQL, Unix/Windows.
Architect self employed
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
United States United States
Nish Nishant is a technology enthusiast from Columbus, Ohio. He has over 20 years of software industry experience in various roles including Chief Technology Officer, Senior Solution Architect, Lead Software Architect, Principal Software Engineer, and Engineering/Architecture Team Leader. Nish is a 14-time recipient of the Microsoft Visual C++ MVP Award.

Nish authored C++/CLI in Action for Manning Publications in 2005, and co-authored Extending MFC Applications with the .NET Framework for Addison Wesley in 2003. In addition, he has over 140 published technology articles on CodeProject.com and another 250+ blog articles on his WordPress blog. Nish is experienced in technology leadership, solution architecture, software architecture, cloud development (AWS and Azure), REST services, software engineering best practices, CI/CD, mentoring, and directing all stages of software development.

Nish's Technology Blog : voidnish.wordpress.com
Software Developer Kakos Bros Solutions
Greece Greece
Spiros [Spyridon or Spyros are also used] Kakos (huo) lives in Athens, Greece. He is currently working as an IT consultant in a large firm. Begun programming during the Commodore era in MS Basic and is still trying to learn (mostly in C++ and C#)...
He likes chess and has recently bought a new (old) modem for one of his Commodores 128 (yes, he has two of them!) to set up a server based on 8-bit technology. He thinks that when the World Wide Web crashes completely by an alien cyber attack, he will be the only one capable of surfing with his Commodore computer and will eventually save the day...
He likes reading and writting philosophy and is a fond admirer of Aristotle and Alfred Russel Wallace. His main heritage is Harmonia Philosophica.
At his free time he is researching the application of polypyrrole (PPy) in the PCB manufacturing process (through-hole plating) at the National Technical University of Athens - Advanced Materials section.
Software Developer (Senior)
Canada Canada
Programmer at Maid LABS from 2003 (www.maidlabs.com)

Programmer-Analyst at Viasat Geo Technoligies from 1995 to 2002 (www.viasat-geo.com).

I have studied at École Polytechnique de Montréal in computer engineering.
Program Manager
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
United States United States
Dr. Doss holds a PhD in Applied Computer Science. His research interests include Operating Systems, Networking, Theory of NP Completeness,and Software Engineering.
https://www.rdoss.com
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Architect Robotz Software
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer
Japan Japan
In 1985, I got my first computer Casio MX-10, the cheapest one of MSX home computers. Then I began programming in BASIC and assembly language, and have experienced over ten languages from that time on.
Now, my primary languages are C++ and C#. Working for a small company in my home town in a rural area of Japan.

Founder
Germany Germany
Software developer since April 2000.
Active in various areas, most notably C/C++ development with Windows platform, web development, scripting.
Coder by heart.
Interested in higher level software development techniques, abstractions, modeling, software factories.
Nuts and bolts guy.
You must sign in to participate in this contest.
This contest has ended.
1 Oct - 31 Oct 2011