Click here to Skip to main content
15,881,669 members
This competition has ended

Best C++ article of January 2012

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.
25 Jan 2012Sebastian Krysmanski
The help page for IDisposable provides the code for IDisposable's default implementation pattern in C#. This article will explain each part of it step by step and also provide the equivalent C++/CLI code in each step.
Please Sign up or sign in to vote.
26 Jan 2012paladin_t
A guide about how to mix native and managed code in one solution
Please Sign up or sign in to vote.
17 Jan 2012mengxz
CScrollBarEx is a simple MFC control derived from CWnd, it can display scrollbar max, min, and current value
Please Sign up or sign in to vote.
5 Feb 2012Lakamraju Raghuram
A glance around vector of bool-type
Please Sign up or sign in to vote.
26 Jan 2012hairy_hats
When linking a mixture of mixed-mode and unmanaged DLLs to an unmanaged C++ executable, the link order can affect how the program runs.
Please Sign up or sign in to vote.
25 Jan 2012Sebastian Krysmanski
How to pass native pointers across C++/CLI assembly boundaries
Please Sign up or sign in to vote.
26 Jan 2012Sebastian Krysmanski
This article is the second part of the subprojects mini series and will show how to use a DLL library project in another project.
Please Sign up or sign in to vote.
16 Mar 2012Jozef Bozek
Ligth object wrapper for iOS CoreData.
Please Sign up or sign in to vote.
24 Jan 2012Lakamraju Raghuram
As stated by many, the inclusion of /FORCE:MULTIPLE switch may lead to unexpected scenarios (even though the code will compile and link) and as an alternative we can build a DLL wrapper [as hinted by dvpsun] over any of the static lib and can invoke the repeated function via this wrapper...
Please Sign up or sign in to vote.
24 Jan 2012Pablo Aliskevicius
If the .lib files you're linking to represent some .dll files somewhere else, you can do the following:void main(){ FunB(); // from external_1.lib FunC(); // from external_2.lib // FunA(); // from external_1.lib / external_2.lib ???? typedef void (WINAPI *...
Please Sign up or sign in to vote.
3 Jan 2012kooyou
The second form is wrong. A two dimensional pointer does not equal to a two dimensional array. But you can use an one dimensional pointer to reference the two dimensional array.int arr[1][20];int *pTwoDem=(int*)arr;Now you can use *(pTwoDem+10) to replace arr[0][10].
Please Sign up or sign in to vote.
21 Jan 2012Jozef Bozek
FliteEngine - An Objective-C speech synthesizer.
Please Sign up or sign in to vote.
26 Jan 2012XPG Live
Use leaderboards on iOS (iPhone/iPad) with XPG
Please Sign up or sign in to vote.
23 Jan 2012Roger65
CFileDialog in a Console Application
Please Sign up or sign in to vote.
12 Jun 2014Michael Haephrati
How Target Eye's Auto updating mechanism allows a silent update of an application from identifying newer versions, downloading them and running them instead of the old one
Please Sign up or sign in to vote.
4 Feb 2012Lakamraju Raghuram 1 alternative  
Expanding a macro in VC++
Please Sign up or sign in to vote.
26 Jun 2013Tecfield
This post shows how to make a callback to C# from C/C++
Please Sign up or sign in to vote.
30 Jan 2012Pablo Aliskevicius
Do you believe that memory corruption will generate an immediate, repeatable crash? Some programmers actually do...
Please Sign up or sign in to vote.
1 May 2012Deka Prikarna A.
Very simple serial port monitor.
Please Sign up or sign in to vote.
16 Jan 2012Tomas "Frooxius" Mariancik
Explanation of the basic workings of the computer in simple language.
Please Sign up or sign in to vote.
26 Mar 2020Michael Haephrati
How a computer can be identified in order to generate a unique ID
Please Sign up or sign in to vote.
15 Feb 2013Christoph Husse
The clean way for getting C++ enumerations with Reflection support.
Please Sign up or sign in to vote.
15 Feb 2013Michael Haephrati
How can an application elevate itself to gain "Admin" rights during runtime
Please Sign up or sign in to vote.
8 Mar 2012Marius Samoila
Plots multiple data sets, interactive tooltip info, zoom/pan, edit color/width/format, annotations, print/save
Please Sign up or sign in to vote.
5 Feb 2012OlegKrivtsov
This article shows how to use CrashRpt error reporting library with an MFC application
Please Sign up or sign in to vote.
21 Sep 2019Lakamraju Raghuram
A glance at the C++11 Standard, covering features supported in VS2010
Please Sign up or sign in to vote.
20 Mar 2015Michael Haephrati
A C++ client for uploading documents to your Google Docs account
Please Sign up or sign in to vote.
15 Feb 2013Michael Haephrati
A pure Win32 API application that can analyze a .NET binary without .NET installed
Please Sign up or sign in to vote.
30 Jan 2012didierjeanphi
Introduction to Volume Shadow Copy API in C++
Please Sign up or sign in to vote.
3 Jan 2012Mukit, Ataul
Customize the standard slider control to appear like an Adobe style slider control
Please Sign up or sign in to vote.
3 Dec 2013moloned
This driver program decodes and displays LCD output from a Victor 86B USB DMM data packet that has been accessed using HIDAPI functions.
Please Sign up or sign in to vote.
17 Jun 2018Clement Emerson, Lakamraju Raghuram
This article aims at consolidating the less talked concept of Lvalues and Rvalues
Please Sign up or sign in to vote.
4 Jan 2012Roger Doss
Exploring the dream of designing a new algorithm for factoring semi-primes
Please Sign up or sign in to vote.
23 Jan 2012Jozef Bozek
ESpeakEngine - Objective-C speech synthesizer
Please Sign up or sign in to vote.
17 Jun 2018Lakamraju Raghuram
A glance at the C++11 Standard, covering features supported in VS2010. This is the next part of this series.
Please Sign up or sign in to vote.
16 Jan 2012And Baxter
In the case that you need to store and pass lambdas around but can't use std::function, here's an alternative.
Please Sign up or sign in to vote.
24 Jan 2012Stefan_Lang
Consider the following scenario:Your team provides libraries for use in other, unspecified applications. When designing your API, you have to consider the fact that not every customer will have access to the newest compiler.Let's say you develop a Vector class that looks like...
Please Sign up or sign in to vote.
13 Jan 2012lassebunk
How to use iOS 5, Xcode 4.2, and storyboards to create a simple Twitter app that will list tweets and show details about each tweet.
Please Sign up or sign in to vote.
5 Feb 2012Lakamraju Raghuram
Optimizing object size by clustering
Please Sign up or sign in to vote.
5 Feb 2012Lakamraju Raghuram
Memory leak detection in VC++
Please Sign up or sign in to vote.
16 Jan 2012Lakamraju Raghuram 1 alternative  
Usage of '_HAS_CPP0X' macro in Visual C++ compiler
Please Sign up or sign in to vote.
18 Jan 2012Sašo Mađarić
Fuzzy Logic API and Fuzzy Logic DSL implemented with C++.
Please Sign up or sign in to vote.
12 Jan 2012Ștefan-Mihai MOGA
How to get temporary files with any extension.
Please Sign up or sign in to vote.
11 Feb 2012Richard MacCutchan
Recent questions on reading ANSI vs Unicode text prompted the following
Please Sign up or sign in to vote.
5 Feb 2012Sebastian Krysmanski 4 alternatives  
How to check whether two template instances of a C++ class have the same template parameters without using dynamic_cast
Please Sign up or sign in to vote.
20 Aug 2023Ștefan-Mihai MOGA
How to download files from an HTTP server.
Please Sign up or sign in to vote.
24 Jan 2012Lakamraju Raghuram 2 alternatives  
How to build an image (DLL/EXE) when two of its included libraries have the same symbol (say function/variable) using VC++
Please Sign up or sign in to vote.
12 Jan 2012pleopard
A simple 2D array class utilizing C++ templates with iterators and indexing operators.
Please Sign up or sign in to vote.
26 Jan 2012Lakamraju Raghuram
For Visual Studio IDE we can detect leaks by using CRT debugger functions#define _CRTDBG_MAP_ALLOC#include #include void main(){ // ...... // ...... _CrtDumpMemoryLeaks();}This will dump leaks if any to the Output window. Check this link :...

Current Participants

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

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 SecurityRevolutions
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Indonesia Indonesia
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
I have a passion for native and managed languages programming. I also like database administration/development.
Software Developer
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.
CEO bring-it-together s.r.o.
Slovakia Slovakia
Jozef Božek is currently a software engineer at bring-it-together s.r.o. in area of large scale infomation systems and mobile applications development.
He has been developing in C++ nearly full time since 2000, in Java since 2004 and in Objective-C since 2009. He is programming using Java EE SDK, iOS SDK, COM/DCOM, MFC, ATL, STL and so on 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.
Technical Lead
India India
_____________________________________________________________

Did my masters from IIT-M in Advanced Manufacturing Technology and working mainly on C++ in CAD domain from 2004 onwards.
Working on web technologies using Angular 7.0 and above, HTML5, CSS3 from 2015.
Denmark Denmark
Lasse is a long-time programmer, having more than 20 years of programming experience and more than 15 years of experience programming for the world wide web. He writes articles about Ruby on Rails, programming, SEO, and, recently, iOS programming.
Software Developer (Senior)
Canada Canada
Founder PEI Watershed Alliance, Inc.
United States United States
I am an analytical chemist and an educator. I program primarily to perform matrix computations for regression analysis, process signals, acquire data from sensors, and to control devices.

I participate in many open source development communities and Linux user forums. I do contract work for an environmental analytical laboratory, where I am primarily focused on LIMS programming and network administration.

I am a member of several community-interest groups such as the Prince Edward Island Watershed Alliance, the Lot 11 and Area Watershed Management Group, and the Petersham Historic Commission.
China China
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.




Chief Technology Officer Movidius
Ireland Ireland
David Moloney holds a B.Eng. degree from Dublin City University, and Ph.D. in Engineering from Trinity College Dublin. For the past 25 years he has worked in microelectronics starting in 1985 with Infineon in Munich and ST Microelectronics in Milan, before returning to Ireland 1994 to help found a series of start-up technology companies including Parthus-CEVA and Silansys. David is currently co-founder (2005) and CTO of Movidius Ltd., a fabless semiconductor company headquartered in Dublin and focused on the design of software programmable multimedia accelerator SoCs. He holds 18 US patents and numerous conference and journal papers on DSP and computer architecture. David is a member of the IEEE.
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1
Russian Federation Russian Federation
I am a software developer currently living in Tomsk, Russia. I received a PhD degree in Computer Science from Tomsk Polytechnic University in 2010. I have been professionally developing C/C++ and PHP software since 2005. I like contributing to open-source and writing programming articles for popular web resources, like CodeProject. Besides writing, I love skiing and watching Formula-1.
Software Developer (Senior)
Israel Israel
Pablo writes code for a living, in C++, C#, and SQL.

To make all that work easier, he uses some C++ libraries: STL, ATL & WTL (to write Windows applications), and code generation.

Pablo was born in 1963, got married in 1998, and is the proud father of two wonderful girls.

Favorite quotes:
"Accident: An inevitable occurrence due to the action of immutable natural laws." (Ambrose Bierce, "The Devil's Dictionary", published in several newspapers between 1881 and 1906).
"You are to act in the light of experience as guided by intelligence" (Rex Stout, "In the Best Families", 1950).
Architect
China China
Video game player & creator; Hardware geek & maker.
Engineer Invariant Corp
United States United States
Paul Leopard has been working in the area of simulation and visualization since 1982.
Retired
United Kingdom United Kingdom
I was a Software Engineer for 40+ years starting with mainframes, and moving down in scale through midi, UNIX and Windows PCs. I started as an operator in the 1960s, learning assembler programming, before switching to development and graduating to COBOL, Fortran and PLUS (a proprietary language for Univac systems). Later years were a mix of software support and development, using mainly C, C++ and Java on UNIX and Windows systems.

Since retiring I have been learning some of the newer (to me) technologies (C#, .NET, WPF, LINQ, SQL, Python ...) that I never used in my professional life, and am actually able to understand some of them.

I still hope one day to become a real programmer.
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.
Team Leader
Slovenia Slovenia
Hey, if you like my content fell more than welcome to contact me on LinkedIn or send me an email to saso.madaric@gmail.com

http://www.linkedin.com/pub/saso-madaric/72/372/b1a

Passionate Team Leader with purpose to keep his team happy and Senior Java Developer who started his first professional software development job at age 20. An enthusiastic believer that technical knowledge is not enough for successfully delivered project - without understanding business domain in detail, project quickly becomes unsuccessful.
Software Developer University of Stuttgart
Germany Germany
I have studied Software Engineering and am currently working at the University of Stuttgart, Germany.

I have been programming for many years and have a background in C++, C#, Java, Python and web languages (HTML, CSS, JavaScript).
Software Developer (Senior)
Switzerland Switzerland
Graduated at TU Darmstadt in Math & CS, with a heavy focus on CAD/CAM

Programming and designing applications in C++ in the areas AI, real-time programming, client-server applications and CAD/CAM since 1985.

Personal interests: AI, computer graphics, games, reading
Software Developer NXP Semiconductors
Romania Romania
My professional background includes knowledge of analyst programmer for Microsoft Visual C++, Microsoft Visual C#, Microsoft Visual Basic, Sun Java, assembly for Intel 80x86 microprocessors, assembly for PIC microcontrollers (produced by Microchip Inc.), relational databases (MySQL, Oracle, SQL Server), concurrent version systems, bug tracking systems, web design (HTML5, CSS3, XML, PHP/MySQL, JavaScript).
Architect
United States United States
I got my BS in Software Engineering from Iran, worked there for 4.5 years mainly in industrial automation field. Then I moved to Australia. In Australia, I had a great chance to work at some big companies. Since 2009 I have been living in the States. I received my MS in Information Systems from Illinois State University. Currently, I am a Senior Software Development Engineer.
Student
Czech Republic Czech Republic
I was interested in technical things since I was a kid and when I got computer at the age of twelve, began using it to create. My biggest passion is game design, but also programming almost anything, creating amateur films or digital drawing and graphics. I also created a bunch of experimental processing architectures and associated programming languages under the hood of project called WPU - Weird Processing Unit.
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.
This is a Organisation (No members)

You must sign in to participate in this contest.
This contest has ended.
1 Jan - 31 Jan 2012