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

Best C++/MFC article of July 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.
25 Jul 2012pasztorpisti 2 alternatives  
How to open a console in a non-console C/C++ application or DLL and make printf/scanf work (stdin/stdout/stderr related functions)
Please Sign up or sign in to vote.
22 Jul 2011Arik Poznanski
In this post, we will dive into the ribbon's dynamic structure capabilities, i.e., we will learn about the different ways to change the structure of the ribbon at runtime.
Please Sign up or sign in to vote.
22 Jul 2011Arik Poznanski
In this post, we continue our exploration of the Windows Ribbon Framework, this time focusing on Gallery controls.
Please Sign up or sign in to vote.
12 Dec 2013Cloud Hsu
How to remind review in iPhone App
Please Sign up or sign in to vote.
29 Jul 2011Sayyed Mostafa Hashemi
Code for checking the avilabiltiy of Internet connection.
Please Sign up or sign in to vote.
22 Jul 2011João Paulo Figueira
An alternative way to create the menu bar
Please Sign up or sign in to vote.
26 Jul 2011Dave Cross
I just use OutputDebugString() and Sysinternals' DebugView.exe.
Please Sign up or sign in to vote.
6 Jul 2011Mukit, Ataul
Shows how to enable invoking of the OnUpdateCmdUI(...) in a dialog or property sheet when a menu bar item is pulled down to show popup menu
Please Sign up or sign in to vote.
4 Jul 2011Philippe Mori
Provided that the intent is to associate a string (const char *) with a particular dialog type, an implementation like this one could be used.templatestruct CVHDialogTmpl{ CVHDialogTmpl() { } INT_PTR DoModal() { return t.DoModal(ptr); } ...
Please Sign up or sign in to vote.
26 Jul 2011Jaime Olivares
Plain old console output is still a valuable debugging tool, even when used in a GUI application.There are many tools here in CP that can be combined with console output like:CConsole - a simple console for debug output[^]Creating a console for your MFC app's debug output[^]You can use...
Please Sign up or sign in to vote.
21 Jul 2011zvx
How to fool the C pre-processor into accepting an empty parameter to a #define
22 Jul 2011Alexandre De Pereyra
Efficient anti-aliasing techniques are an important tool of high-quality, real-time rendering. A new Intel technique called Morphological Antialiasing (MLAA) addresses limitations of the standard technique, MSAA. This article discusses MLAA implementation. Includes code samples and free download.
Please Sign up or sign in to vote.
21 Jul 2011Paul M Watt
Guide to creating and using Memory Device Contexts (DC) in Win32.
Please Sign up or sign in to vote.
22 Jan 2015Hatem Mostafa
This article demonstrates how to forward real-time feed to multiple clients with different bandwidths.
Please Sign up or sign in to vote.
20 Mar 2015Gergely Mancz
This article will show you how to determine the right integer type for a C++ enum in compile time with template meta-programming.
Please Sign up or sign in to vote.
21 Jul 2011Chris H.F. Tsang
Drawing Polylines by tessellation with joints, caps, feathering and per- vertex color
Please Sign up or sign in to vote.
11 Jul 2011Ed Gadziemski
CWtlPicture attaches to an owner-drawn picture control and reads, displays, and saves disk or database images
Please Sign up or sign in to vote.
18 Jul 2011Michael Dunn
This article shows how to control various Ribbon and command properties at runtime
Please Sign up or sign in to vote.
4 Jul 2011Richard MacCutchan
A little tool to keep a list of code or text snippets ready to put in the clipboard
Please Sign up or sign in to vote.
17 Jul 2011hofingerandi
Problems I encountered when polishing the GUI of an existing 200K LOC application.
Please Sign up or sign in to vote.
25 Mar 2012Andreas Schoenle
A DLL-wrapper that requires no code changes when switching to dynamic loading and provides detailed error checking functionality.
Please Sign up or sign in to vote.
23 Jul 2011Cloud Hsu
Stack implementation for Objective-C.
Please Sign up or sign in to vote.
9 Aug 2011Rodrigo Cesar de Freitas Dias
Writing a dialog based program using only pure Win32 C code
Please Sign up or sign in to vote.
14 Jul 2011ocoudert
The best way to understand how to serialize with boost is to walk through increasingly complex serialization scenarios.
Please Sign up or sign in to vote.
27 Jul 2011Sei Flavius
Solution to Finding Sophie puzzle
Please Sign up or sign in to vote.
15 Jul 2011ThatsAlok
Collection of Q&A from VC++ forum
Please Sign up or sign in to vote.
9 Jul 2011Cristian Amarie
Testing C++ classes with a pointer to member function.
Please Sign up or sign in to vote.
29 Jul 2011Sayyed Mostafa Hashemi
How to set/change the master volume.
Please Sign up or sign in to vote.
12 Dec 2013Cloud Hsu
Implement Objective-C Singleton Pattern
Please Sign up or sign in to vote.
21 Jul 2011Doc Lobster
When to use the typename keyword to identify dependent types, and when not to.
Please Sign up or sign in to vote.
20 Aug 2023Ștefan-Mihai MOGA
How to save a message to an MSG Compound file.
Please Sign up or sign in to vote.
21 Jun 2013ThatsAlok
How and Where to use it!
Please Sign up or sign in to vote.
25 Jul 2011Lucman Abdulrachman
Using a button as splitter in MFC dialog based applications.
Please Sign up or sign in to vote.
4 Oct 2011Doc Lobster
Establishing a strong binding between enumerations and arrays
Please Sign up or sign in to vote.
7 Jul 2011Doc Lobster
Be sure that your array has the right size - without using size_of!
Please Sign up or sign in to vote.
31 Jul 2011Lewis Liu L
TCP/IP Stack, FAT16 System on a Microcontroller
Please Sign up or sign in to vote.
12 Dec 2013Cloud Hsu
How to implement Queue in Objective-C
Please Sign up or sign in to vote.
29 Jul 2011Melick
User profile synchronization service starting issues
Please Sign up or sign in to vote.
17 Mar 2014Indivara
A very simple class that allows you to easily lock blocks of code from multi-threaded access.
Please Sign up or sign in to vote.
15 Jul 2011hus
A graphics library to export graphical output to BMP or WMF.
Please Sign up or sign in to vote.
8 Jul 2011Yonghwi Kwon
A simple and easy way to check validity of variables in native C++ language
Please Sign up or sign in to vote.
24 Jul 2011fnwinter
Help to make a skinned dialog program easily in Python, XML with a UI window DLL.
Please Sign up or sign in to vote.
24 Jul 2011Cristian Amarie
Classes for making simple internet calls using Wininet.
Please Sign up or sign in to vote.
3 Jul 2011Philippe Mori
Since you must pass the string at each instanciation points, it is useless to make a template argument for it.templatestruct CVHDialogTmpl{ CVHDialogTmpl(const char *ptr_) : ptr(ptr_) { } INT_PTR DoModal() { return t.DoModal(ptr); } Ty t; ...
Please Sign up or sign in to vote.
22 Jul 2011Arik Poznanski
Introduction Every WPF developer knows the situation where you have a large line-of-business application, you’ve implemented all the features and when you finally run it on real data – it runs s-l-o-w.
Please Sign up or sign in to vote.
18 Jul 2011Hubert Haien
Presentation of a memory-wrapper class written in ASM that provides methods to organize and serialize data. Comes with its own 32 bit algorithm.
Please Sign up or sign in to vote.
17 Jul 2011Mohammad Nasim
answers many whys in bigenners' and even advanced programmers' head about what looks strange syntax
Please Sign up or sign in to vote.
11 Jul 2011trevor.n.webster
This article describes the challenges I faced while programming a simple, concurrent WebSockets server in C++, and concludes with a complete working solution.
Please Sign up or sign in to vote.
25 Jul 2011Pranay Rana
Note: Split function has more no of overload method but the below two I found useful. You may found other overloads helpful in your code.In this post I am going to discuss about two important thing about Split function of String class.

Current Participants

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

Software Developer (Senior)
India India
He used to have biography here Smile | :) , but now he will hire someone (for free offcourse Big Grin | :-D ), Who writes his biography on his behalf Smile | :)

He is Great Fan of Mr. Johan Rosengren (his idol),Lim Bio Liong, Nishant S and DavidCrow and Believes that, he will EXCEL in his life by following there steps!!!

He started with Visual C++ then moved to C# then he become language agnostic, you give him task,tell him the language or platform, he we start immediately, if he knows the language otherwise he quickly learn it and start contributing productively

Last but not the least, For good 8 years he was Visual CPP MSMVP!
United States United States
Graphics Software Engineer, Intel Corporation
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) Verint
Israel Israel
Arik Poznanski is a senior software developer at Verint. He completed two B.Sc. degrees in Mathematics & Computer Science, summa cum laude, from the Technion in Israel.

Arik has extensive knowledge and experience in many Microsoft technologies, including .NET with C#, WPF, Silverlight, WinForms, Interop, COM/ATL programming, C++ Win32 programming and reverse engineering (assembly, IL).
Hong Kong Hong Kong
Chris H.F. Tsang
tyt2y3@gmail.com
Architect SIS
Taiwan Taiwan
CloudBox cross-platform framework. (iOS+ Android)
Github: cloudhsu
My APP:
1. Super Baby Pig (iOS+Android)
2. God Lotto (iOS+Android)
2. Ninja Darts (iOS)
3. Fight Bingo (iOS)
Team Leader BitDefender
Romania Romania
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior) Interface Developers Ltd
United Kingdom United Kingdom
Old dog learning new tricks.
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Founder Choycer
United States United States
Ed has over 40 years experience in computer technology and a bachelor's degree in Business Administration. He's currently a marketing technology consultant. During his career, he's led software development departments and created software still in use in the communications and healthcare industries. Ed is a veteran of the United States Army. He lives in Arizona in the United States.

Find Ed on Linkedin.

This material is copyright 2019 by Ed Gadziemski. Unauthorized use is strictly prohibited. All rights reserved.
Software Developer SEC
Korea (Republic of) Korea (Republic of)
Worked and Working as Windows, Game Software, Mobile Developer.
Employed (other) http://www.otpbank.hu
Hungary Hungary
Software Developer (Senior)
Egypt Egypt
Software Developer
Austria Austria
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Junior)
Germany Germany
Eager to show what I can do, but still haven't had the chance todo so.
hus
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.
Engineer
Japan Japan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Architect
Peru Peru


Computer Electronics professional, Software Architect and senior Windows C++ and C# developer with experience in many other programming languages, platforms and application areas including communications, simulation systems, PACS/DICOM (radiology), GIS, 3D graphics and HTML5-based web applications.
Currently intensively working with Visual Studio and TFS.
Software Developer (Senior) Frotcom International
Portugal Portugal
I work on R&D for Frotcom International, a company that develops web-based fleet management solutions.
Software Developer
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 NCR Cebu Development Center
Philippines Philippines
Focused in Leading Business Development while working as a Software Developer. His specialty is C++ and PHP. Been developing MS Windows application since 2007.
Sri Lanka Sri Lanka
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
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.
Network Administrator
Egypt Egypt
working as a professional services consultant for Cisco products (Routing, Switching, and SDA/DNA).
my main job is to redesign networks to accommodate changes required by business needs, minimizing the down-time as possible. also, i join other teams to help troubleshoot complex network problems.
Technical Lead Kotha Technologies
Bangladesh Bangladesh
If you are not in - you are out !
- Chapter 1
Architect OC Consulting
United States United States
I have 20 years experience in software architecture and product development, including 10 years experience in research. I worked at eBay, Synopsys, Mentor Graphics, Magma, and I am an independent consultant in software design and development. I have published 50+ research papers or book chapters, and invented several algorithms for which I hold a few patents.

I am interested in technology as a whole, in particular software, hardware, and web-based applications. Check me out on LinkedIn or twitter (@ocoudert).
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.
Engineer
United States United States
I am a software architect and I have been developing software for nearly two decades. Over the years I have learned to value maintainable solutions first. This has allowed me to adapt my projects to meet the challenges that inevitably appear during development. I use the most beneficial short-term achievements to drive the software I develop towards a long-term vision.

C++ is my strongest language. However, I have also used x86 ASM, ARM ASM, C, C#, JAVA, Python, and JavaScript to solve programming problems. I have worked in a variety of industries throughout my career, which include:
• Manufacturing
• Consumer Products
• Virtualization
• Computer Infrastructure Management
• DoD Contracting

My experience spans these hardware types and operating systems:
• Desktop
o Windows (Full-stack: GUI, Application, Service, Kernel Driver)
o Linux (Application, Daemon)
• Mobile Devices
o Windows CE / Windows Phone
o Linux
• Embedded Devices
o VxWorks (RTOS)
o Greenhills Linux
o Embedded Windows XP

I am a Mentor and frequent contributor to CodeProject.com with tutorial articles that teach others about the inner workings of the Windows APIs.

I am the creator of an open source project on GitHub called Alchemy[^], which is an open-source compile-time data serialization library.

I maintain my own repository and blog at CodeOfTheDamned.com/[^], because code maintenance does not have to be a living hell.
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.
Software Developer (Senior)
India India

Microsoft C# MVP (12-13)



Hey, I am Pranay Rana, working as a Team Leadin MNC. Web development in Asp.Net with C# and MS sql server are the experience tools that I have had for the past 5.5 years now.

For me def. of programming is : Programming is something that you do once and that get used by multiple for many years

You can visit my blog


StackOverFlow - http://stackoverflow.com/users/314488/pranay
My CV :- http://careers.stackoverflow.com/pranayamr

Awards:


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.
Systems Engineer
Brazil Brazil
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Software Developer (Senior)
Iran (Islamic Republic of) Iran (Islamic Republic of)
I am Mostafa Hashemi.I was born in Tehran. I graduated from IUMS university in 2002 (1381). Although my university field different from programming, but I like it. Since I acquainted with computer, I have been interested in Visual C++. I have been beginning to program in Visual C++ in 2003.
Thanks,
http://www.sischer.ir
Engineer @ Curbsidr
United States United States
Check our technical blog for more tips and articles @ https://curbsidr.com/blog/
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).
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.
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
zvx
Software Developer
Brazil Brazil
I'm a long-time software developer living in Brazil.

I've been developing software for retail and banking automation in C/C++ for many years now. In the old days I even did some COBOL programming, and some assembly for the 8080.

My experience ranges from low level software such as interface code for serial devices for DOS and Windows (bar code scanners, printers, cash dispensers, etc) and goes to writing end user applications for POS terminals and bank ATMs. In between I've done a great deal of TCP/IP programming using the basic Berkeley sockets interface, which is my main interest nowadays.
You must sign in to participate in this contest.
This contest has ended.
1 Jul - 31 Jul 2011