Click here to Skip to main content
15,500,921 members
This competition has ended

Best C++ article of November 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 Nov 2011Adnan Boz
In this blog post, I’m diving deeper into Thrust usage scenarios with a simple implementation of Monte Carlo Simulation.
Please Sign up or sign in to vote.
24 Nov 2011Scanix
SystemFramework defines interfaces, classes, and types to support a native runtime system with its own garbage collector, delegates, etc. The design of SystemFramework classes is similar to those of the .NET Framework.
Please Sign up or sign in to vote.
17 Nov 2011John Stewien
Wrapping a C++ callback in a .NET Action so you can use the .NET Task Parallel Library
Please Sign up or sign in to vote.
14 Nov 2011Krosus
At an MS-DOS prompt, enter:attrib -r *.*
Please Sign up or sign in to vote.
1 Nov 2011Kaqkk79
How about this (assuming your project is set to Unicode)?CString strMyString=L"Test string";std::string strMyStdAnsiStr = CStringA(strMyString);
Please Sign up or sign in to vote.
6 Nov 2011Member 4079860
Describes a process to load/unload built in drivers under WinCE at run time to speed up development process
Please Sign up or sign in to vote.
25 Nov 2011li9705
A simple opengl example of Android using cle
Please Sign up or sign in to vote.
5 Nov 2011Jim Crafton
Here's an interesting thought experiment for functions that get executed in a separate thread.
Please Sign up or sign in to vote.
21 Nov 2011hjgode
KeyWedge: Updated
Please Sign up or sign in to vote.
7 Dec 2011WebBiscuit
An introduction to three VC++ Macros: How they came to be
Please Sign up or sign in to vote.
25 Dec 2011john_meade
The right thing to do in this case is attach a debugger to determine the underlying cause of the the deadlock. This solution ignores the fact that the thread being terminated might have an exclusive lock on other critical resources (e.g., the OS loader lock or any application defined...
Please Sign up or sign in to vote.
22 Nov 2011PeteBarber
Recently I was helping somebody debug an issue around the use of swprintf_s.  The issue turned out to an Obi-Wan (off by one) error.  I don't tend use the likes of printf() very much instead preferring to use a std::stringstream if I need to format into a string.I'd assumed that the Microsoft's secu
Please Sign up or sign in to vote.
9 Oct 2013Michael Haephrati
When I developed Rashumon, there was no built in support for multi-lingual / bi-directional text and I had to develop it from scratch.
Please Sign up or sign in to vote.
4 Nov 2011Nish Nishant
A comparative look at lambdas in C++ and C# with focus on the differences and similarities in lambda usage across the languages and their variants.
Please Sign up or sign in to vote.
28 Nov 2011 Randor
Console threads can be promoted to GUI thread and receive thread messages
Please Sign up or sign in to vote.
16 Jan 2012trotwa 1 alternative  
How to avoid memory leak in WinXP, if you kill a thread
Please Sign up or sign in to vote.
19 Mar 2014KjellKod.cc
Don't let slow disk access bog your logger down. By using the g2log asynchronous logger you will remove the wait bottlenecks while it has the reliability of a *traditional* logging library.
Please Sign up or sign in to vote.
8 Jan 2012Aniruddha Loya
A module for compressing / decompressing files in windows using Windows shell
Please Sign up or sign in to vote.
6 Nov 2011Pascal Ganaye
When you search manually, you can search for every odd number that is a step of 2. If you're a bit more clever (as you are), you can use steps of 6 (2 * 3). Testing (testno+1)%6==0 is very similar to (testno % 6) = 5.You can speed up big time by having a loop that increments per steps of...
Please Sign up or sign in to vote.
27 Jul 2017DQNOK
Traces the evolution of a high-speed EXPRESSION EVALUATOR to demonstrate the various PATTERNS you will need to "roll your own" recursive descent compiler.
Please Sign up or sign in to vote.
2 Nov 2011noam-meir
This article will cover the basics of the Sensor API and WinUSB.
Please Sign up or sign in to vote.
13 Nov 2011T.Kojima
Suggestion about another curve representation
Please Sign up or sign in to vote.
27 Nov 2012Keithsw
Simulating and Controlling GE Color Effects Lights with Arduino
Please Sign up or sign in to vote.
13 Jan 2012ErnestoNet
Viewer of MsAccess databases directly from MFC and .NET - Repair corrupt databases
Please Sign up or sign in to vote.
13 Nov 2011geoyar
I am using CString str(_T("Test"));typedef std::basic_string string_t;string_t resStr(str);It works because the CSting has a cast to LPTCSTR.
Please Sign up or sign in to vote.
21 Nov 2011Philippe Cayouette
The initial implementation of enable_shared_from_this of STL or the one from Boost C++ causes crash if it appears more than once in the inheritance tree of a user class. This is a solution for the problem. (search tag: enable shared from this)
Please Sign up or sign in to vote.
10 Nov 2011Yonghwi Kwon
This article explains how the SetParent function can be used to deceive users and incurs a catastrophe. Also, it suggests protection techniques against attacks presented here.
Please Sign up or sign in to vote.
15 Dec 2012Mahdi Nejadsahebi
How to detect the angle of a line in an image
Please Sign up or sign in to vote.
4 Nov 2011ErnestoNet
Utility to keep track of your finances
Please Sign up or sign in to vote.
6 May 2014AndyUk06
A non-nonsense guide to setting up Boost threads in Visual Studio environments.
Please Sign up or sign in to vote.
3 Nov 2011Mitendra Anand
Thread synchronization using the Win32 Event object.
Please Sign up or sign in to vote.
16 Nov 2011gemma85
A Command Line Caller example
Please Sign up or sign in to vote.
8 Nov 2011grilialex
Bug fixes and enhancements on AVRILOS SysTick module
Please Sign up or sign in to vote.
2 Nov 2011darkoman
An implementation of an assosiative array (a dictionary) in the standard C++ way.
Please Sign up or sign in to vote.
27 Nov 2011Hugo González Castro
An easy way to implement static constructors and static destructors in standard C++.
Please Sign up or sign in to vote.
1 Nov 2011Brett Rowbotham
Try this one://Can we print all integers from 1 to 30??/int x = 0;while (x
Please Sign up or sign in to vote.
28 Nov 2011Grant Curell
A basic copiable count sort implementation.
Please Sign up or sign in to vote.
30 Nov 2011RioWing
Why does it have to be this complicated to call a constructor

Current Participants

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

Software Developer (Senior)
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
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.
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
Student EPFL
Switzerland Switzerland
After almost 4 years of experience varying from finance to building & running a startup... I decided to take a break, go back to college and be a (academic) student again.
However, I continue to do freelance work and am currently working on HTML5 games for Code-Heads, a UK based studio.
http://aniruddhaloya.blogspot.com
Architect Knowledge Base Software
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior) Elektromehanika d.o.o. Nis
Serbia Serbia
He has a master degree in Computer Science at Faculty of Electronics in Nis (Serbia), and works as a C++/C# application developer for Windows platforms since 2001. He likes traveling, reading and meeting new people and cultures.
Software Developer USAF
United States United States
Education:
-BS Mechanical Engineering
-MS Mechanical Engineering
Languages:
-Perl
-SQL
-C and C++
-Fortran
-VB
Past Jobs:
-Jet engines engineer
-Adjunct Engineering Professor
-Structural Tracking System: IT Engineer
-Mathematician/Forecasting Models Architect/Implementer
Current Job:
-Financial manager for a small company, and CTO at another small company.
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.
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 Verizon Internet Services
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
Grant is a specialist in computer security and networking. He holds a bachelors degree in Computer Science and Engineering from the Ohio State University. Certs: CCNA, CCNP, CCDA, CCDP, Sec+, and GCIH.
Systems Engineer AI ZeroCaliber Ltd
Cyprus Cyprus
More than 15 year of Embedded Systems development designing both hardware & software.
Experience with Product Development,lab prototypes and Automated Testers, Sensors, motors and System Engineering. Have used numerous micro-controllers/processors, DSP & FPGAs.

Please check AI ZeroCaliber if you need any help.
You may find also my personal site: Ilialex and my blog site: Ilialex Blog
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
Spain Spain
B.Sc. Mathematics and Computer Science.
Programming in C++ since 2003.
Software Developer (Senior)
United States United States
Currently working on the Visual Component Framework, a really cool C++ framework. Currently the VCF has millions upon millions upon billions of Users. If I make anymore money from it I'll have to buy my own country.
Founder Cheesy Design
Taiwan Taiwan
John graduated from the University of South Australia in 1997 with a Bachelor of Electronic Engineering Degree, and since then he has worked on hardware and software in many fields including Aerospace, Defence, and Medical giving him over 10 of years experience in C++ and C# programming. In 2009 John Started his own contracting company doing business between Taiwan and Australia.
Web 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.
Software Developer (Senior)
Hungary Hungary
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior) LogRhythm
United States United States
Enjoying Colorado! Family and intense software development.

Kjell is a driven developer with a passion for software development. His focus is on coding, boosting software development, improving development efficiency and turning bad projects into good projects.

Kjell was twice national champion in WUKO and semi-contact Karate and now he focuses his kime towards software engineering, everyday challenges and moose hunting while not being (almost constantly) amazed by his daughter and sons.
Software Developer Thales Advanced Weapon Systems
United Kingdom United Kingdom
This member doesn't quite have enough reputation to be able to display their biography and homepage.
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Iran (Islamic Republic of) Iran (Islamic Republic of)
Have a Good Time

I'm college student in science computer.
i worked the visual basic 2006,visual c++ 2006,2008,2010,
and a bit delphi 2007,html,visual c#.
i like programming and i hope to become a really programmer in the world.
I like sport, specially karate.

always don't forget two things: 1st God ,2nd to Try
good luck,and god with you
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
CEO Secured Globe, Inc.
United States United States
Michael Haephrati is a music composer, an inventor and an expert specializes in software development and information security, who has built a unique perspective which combines technology and the end user experience. He is the author of a the book Learning C++ , which teaches C++ 20, and was published in August 2022.

He is the CEO of Secured Globe, Inc., and also active at Stack Overflow.

Read our Corporate blog or read my Personal blog.




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.
United States United States
Nish Nishant is a Principal Software Architect based out of Columbus, Ohio. He has over 17 years of software industry experience in various roles including Lead Software Architect, Principal Software Engineer, and Product Manager. Nish was a Microsoft Visual C++ MVP between 2002 and 2015.

Nish is an industry acknowledged expert in the Microsoft technology stack. He authored C++/CLI in Action for Manning Publications in 2005, and had previously 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 vastly experienced in team management, mentoring teams, and directing all stages of software development.

Contact Nish : If you are interested in hiring Nish as a consultant, you can reach him via his google email id voidnish.

Company Website : www.ganymedesoftwaresolutions.com
Engineer Intel
Israel Israel
Noam lives in Haifa, Israel. He graduated (EE B.Sc) from the Technion institute in 2010.
For the last several years he had been working for Intel wireless division. In his current roll he is working on both the hardware and software side, in a wide range of fields: WiFi, PCIe, FPGA prototyping, virtual platforms and emulation, GUI (WPF), driver, etc.
In his free time Noam is into aviation - building and flying things and working on auto-pilot and control algorithms.
Software Developer (Senior)
France France
I am a French programmer.
These days I spend most of my time with the .NET framework, JavaScript and html.
Team Leader
United Kingdom United Kingdom
My day job is mostly working in C++ with a bit of C#. I write a fair amount of command line based tools and really wish they could have a GUI front-end to them hence why I spend my spare time working with WPF.

I started a blog few years back but didn't do a lot with it. I've started describing some of the interesting programming things I come across on it. Please take a look.
Software Developer (Senior) CAE Inc.
Canada Canada
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Engineer
Canada Canada
This member doesn't quite have enough reputation to be able to display their biography and homepage.
Czech Republic Czech Republic
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Systems Engineer
Russian Federation Russian Federation
Last 6 years worked as a system administrator SAP systems.
My duties are to install, copy, backup/restore SAP in Unix, Linux system, create users, assign roles, and etc... .I wrote this program to make easer my work, and it is interesting for me to join C++.C# and SAP ABAP subsystems.
Japan Japan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer Web Biscuit
United Kingdom United Kingdom
At Web Biscuit, you can find software, articles, a good dollop of quality and an unhealthy obsession over biscuits.
Website: http://www.webbiscuit.co.uk
Twitter Watch: http://twitter.com/WebBiscuitCoUk
United States United States
I started to write software since 1999 and have developed various products including security solutions and system utilities.

Microsoft Visual C++ MVP
Assistant Professor at the University of Virginia
Website: http://yongkwon.info
You must sign in to participate in this contest.
This contest has ended.
1 Nov - 30 Nov 2011