Click here to Skip to main content
14,271,765 members

Best C++ article of November 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.

Current Entries

Articles that match the contest criteria are automatically entered.

28 Nov 2011
Adnan Boz
In this blog post, I’m diving deeper into Thrust usage scenarios with a simple implementation of Monte Carlo Simulation.
24 Nov 2011
Scanix
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.
14 Nov 2011
Krosus
At an MS-DOS prompt, enter:attrib -r *.*
1 Nov 2011
Kaqkk79
How about this (assuming your project is set to Unicode)?CString strMyString=L"Test string";std::string strMyStdAnsiStr = CStringA(strMyString);
9 Oct 2013
Michael Haephrati
When I have devleoped Rashumon, there was no built in support for multi-lingual / bi-directional text and I had to develop such from scratch
4 Nov 2011
Nish 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.
16 Jan 2012
trotwa
1 alternative  
How to avoid memory leak in WinXP, if you kill a thread
28 Nov 2011
Randor
Console threads can be promoted to GUI thread and receive thread messages
19 Mar 2014
KjellKod.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.
8 Jan 2012
Aniruddha Loya
A module for compressing / decompressing files in windows using Windows shell
6 Nov 2011
Pascal 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...
27 Jul 2017
DQNOK
Traces the evolution of a high-speed EXPRESSION EVALUATOR to demonstrate the various PATTERNS you will need to "roll your own" recursive descent compiler.
2 Nov 2011
noam-meir
This article will cover the basics of the Sensor API and WinUSB.
27 Nov 2012
Keithsw
Simulating and Controlling GE Color Effects Lights with Arduino
13 Nov 2011
T.Kojima
Suggestion about another curve representation
13 Jan 2012
ErnestoNet
Viewer of MsAccess databases directly from MFC and .NET - Repair corrupt databases
21 Nov 2011
Philippe 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)
10 Nov 2011
Yonghwi 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.
15 Dec 2012
Mahdi Nejadsahebi
How to detect the angle of a line in an image
4 Nov 2011
ErnestoNet
Utility to keep track of your finances
6 May 2014
AndyUk06
A non-nonsense guide to setting up Boost threads in Visual Studio environments.
3 Nov 2011
Mitendra Anand
Thread synchronization using the Win32 Event object.
16 Nov 2011
gemma85
A Command Line Caller example
8 Nov 2011
grilialex
Bug fixes and enhancements on AVRILOS SysTick module
2 Nov 2011
darkoman
An implementation of an assosiative array (a dictionary) in the standard C++ way.
27 Nov 2011
Hugo González Castro
An easy way to implement static constructors and static destructors in standard C++.
1 Nov 2011
Brett Rowbotham
Try this one://Can we print all integers from 1 to 30??/int x = 0;while (x < 30){ _tprintf(_T("X = %d\n"), ++x);}
13 Nov 2011
geoyar
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.
28 Nov 2011
Grant Curell
A basic copiable count sort implementation.
30 Nov 2011
RioWing
Why does it have to be this complicated to call a constructor
6 Nov 2011
Member 4079860
Describes a process to load/unload built in drivers under WinCE at run time to speed up development process
5 Nov 2011
Jim Crafton
Here's an interesting thought experiment for functions that get executed in a separate thread.
21 Nov 2011
hjgode
KeyWedge: Updated
7 Dec 2011
WebBiscuit
An introduction to three VC++ Macros: How they came to be
25 Nov 2011
li9705
A simple opengl example of Android using cle
25 Dec 2011
john_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...

Current Participants

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

Randor
Software Developer (Senior)
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.
AndyUk06
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
Aniruddha Loya
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
Brett Rowbotham
Architect Knowledge Base Software
South Africa South Africa
No Biography provided
darkoman
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.
DQNOK
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.
ErnestoNet
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.
gemma85
United States United States
No Biography provided
geoyar
Software Developer Verizon Internet Services
United States United States
No Biography provided
Grant Curell
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.
grilialex
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
hjgode
Germany Germany
No Biography provided
Hugo González Castro
Software Developer (Senior)
Spain Spain
B.Sc. Mathematics and Computer Science.
Programming in C++ since 2003.
Jim Crafton
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.
john_meade
Web Developer
United States United States
No Biography provided
Kaqkk79
Software Developer (Senior)
Hungary Hungary
No Biography provided
Keithsw
Australia Australia
No Biography provided
KjellKod.cc
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.
Krosus
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.
li9705
China China
No Biography provided
Mahdi Nejadsahebi
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
No Biography provided
Michael Haephrati
CEO Secured Globe, Inc.
United States United States
Michael Haephrati, CEO and co-founder of Secured Globe, Inc. Worked on many ventures starting from HarmonySoft, designing Rashumon, the first Graphical Multi-lingual word processor for Amiga computer. During 1995-1996 he worked as a Contractor with Apple at Cupertino.



Mitendra Anand
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.
Nish Nishant
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
noam-meir
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.
Pascal Ganaye
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.
Philippe Cayouette
Software Developer (Senior) CAE Inc.
Canada Canada
No Biography provided
RioWing
Engineer
Canada Canada
This member doesn't quite have enough reputation to be able to display their biography and homepage.
Scanix
Czech Republic Czech Republic
No Biography provided
snp157
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.
T.Kojima
Japan Japan
No Biography provided
trotwa
Germany Germany
No Biography provided
WebBiscuit
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
Yonghwi Kwon
Software Developer
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 (from 2008 to present)
Website: http://rodream.net
You must sign in to participate in this contest.
This contest has ended.
1 Nov - 30 Nov 2011