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

Best C++/MFC article of May 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.
15 May 2011Doc Lobster 1 alternative  
String conversion using the C++ Standard Library only
Please Sign up or sign in to vote.
15 May 2011Foothill
Complier Error: RC1004
Please Sign up or sign in to vote.
13 May 2011blytle
also since _bstr_t's have operator (char *) and operator (wchar_t *) if you have included comutil.h, you can use it to do your conversion.char * source = "this is my source" ;_bstr_t converter_temp(source) ;wstring target ;target = wstring(converter_temp) ;... and the other way...
Please Sign up or sign in to vote.
13 May 2011Vinith B Raj
A simple bit switch implementation to indicate/maintain function/scope states
Please Sign up or sign in to vote.
14 May 2011Philippe Mori
inline std::wstring AsciiToUnicode(std::string text){ // Could do some DEBUG check here to ensure it is really ASCII. // Also, if in the future, it is found, it is not the case, // it would much easier to update code. // Same as jean Davy here... return...
Please Sign up or sign in to vote.
22 May 2011PeteBarber
I've been learning about BOOST Spirit; a C++ expression based compiler generator. One of the examples is for a Roman Numeral parser. This contained the following interesting code for pre-loading a symbol table...
24 May 2011manythreads
This fifth article in a series on portable multithreaded programming using OpenCL™ Rob Farber discusses OpenCL™ buffers and demonstrates how to tie computation to data in a multi-device, multi-GPU environment.
2 Apr 2012manythreads
This sixth article in a series on portable multithreaded programming using OpenCL™ where Rob Farber discusses how to calculate data in OpenCL™ and render it with OpenGL within the same application.
Please Sign up or sign in to vote.
1 Jan 2013Dávid Kocsis
A new general purpose language that aims to be fast, high level and simple to use.
Please Sign up or sign in to vote.
19 Oct 2012Viktor Signaievskyi
A simple software based mouse emulator
Please Sign up or sign in to vote.
27 Apr 2013Lior Kogan 1 alternative  
A C++11 infrastructure for circular values (angles, time-of-day, etc.) mathematics and statistics
Please Sign up or sign in to vote.
22 Feb 2013juancaruca
Class for reading HID devices like joystick or gamepad - very simple, to be used for robotics
Please Sign up or sign in to vote.
9 Nov 2011grilialex
How-To Embed Xilinx FPGA Configuration Data to AVRILOS
Please Sign up or sign in to vote.
23 May 2011Rotted Frog
A library for creating simple dialogs declaratively with minimal overhead
Please Sign up or sign in to vote.
4 May 2011cfrost
How to use a modeless WinForm from an unmanaged application including callback functionality
Please Sign up or sign in to vote.
20 May 2011Viktor Signaievskyi
A project to provide “hardware-software” alarm device
Please Sign up or sign in to vote.
20 May 2011Apriorit Inc
This article describes the development of the library for performing text search based on Boolean search queries.
Please Sign up or sign in to vote.
18 Jul 2011Chris H.F. Tsang
With premium quality anti- aliasing, color, thickness, and minimum CPU overhead.
Please Sign up or sign in to vote.
6 May 2011Zeeshan Amjad
In this article, we try to combine compile time/runtime and structure/generative with five different types of recursion.
Please Sign up or sign in to vote.
11 May 2011Otto Lehmann
A post of how to do keyboard hooking in kernel
Please Sign up or sign in to vote.
24 Mar 2013Gergely Mancz
This article describes how to write and use a flexible policy based template copy pointer.
Please Sign up or sign in to vote.
22 May 2011Jamming1
This article explains how to automate Visual C++ project configurations using the Visual Studio wizard engine.
Please Sign up or sign in to vote.
14 May 2011Martin Richter [rMVP C++]
Provide your customized class name to MFC application SDI/MDI and dialog based
Please Sign up or sign in to vote.
28 May 2011grilialex
Flow and tools to convert Xilinx bitstreams to C source code for programming FPGA/CPLD
Please Sign up or sign in to vote.
21 Aug 2011Vinod Vijayan
List that combines the advantage of array and linked-list and has better performance
Please Sign up or sign in to vote.
24 Jul 2011Robert Josefson
How to pass a variable length array of structs from C to VB.NET.
Please Sign up or sign in to vote.
1 May 2011Vinith B Raj
A generic task/worker implementation to provide asynchronous 'fire & forget' mechanism for your object
Please Sign up or sign in to vote.
4 May 2011Selvam R
This article explains the usage of function pointer and callback in Windows application programming Interface (API).
Please Sign up or sign in to vote.
29 May 2011OlegKrivtsov
This article demonstrates a file preview control in a WTL application.
Please Sign up or sign in to vote.
17 May 2011Asif Bahrainwala
Basic debugger, Breakpoints, OutputDebugString
Please Sign up or sign in to vote.
2 May 2011Paul Heil
A small addition to the popular command-line itsutils for Windows Mobile.
Please Sign up or sign in to vote.
19 May 2011Ger Hayden
This is a working example of an enum class column on a DataGridView for a Windows Form using C++/CLI where data is drawn from multiple datasources.
Please Sign up or sign in to vote.
14 Feb 2023Atique Rahman
Tips and tricks on String manipulations in Unicode (Windows Programming context)
Please Sign up or sign in to vote.
9 Jun 2011steveh2112
How to use CMFCToolTipCtrl tooltips in a view for dynamic context sensitive tips
Please Sign up or sign in to vote.
25 May 2011Rob A. Fraydl
Extends the CStatic with image, frame, shadow and using individual font
Please Sign up or sign in to vote.
27 May 2011Member 7950660
Threads and a Bicycle-built-for-two
Please Sign up or sign in to vote.
4 May 2011Otto Lehmann
An example of blocking access to USB Memory and CD
Please Sign up or sign in to vote.
30 May 2011Hubert Haien
SLQ lazy? Object pointers are annoying? How about you look your object up by assigning it a unique name?
Please Sign up or sign in to vote.
24 May 2011Naveen
In this post, we will see how the DumpViewer is able to open a particular file in Visual Studio and highlight the specified line.
Please Sign up or sign in to vote.
30 May 2011Jerry Jiang
Code to simulate a mouse click event in C++

Current Participants

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

Software Developer (Senior)
Australia Australia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Chief Technology Officer Apriorit Inc.
United States United States
ApriorIT is a software research and development company specializing in cybersecurity and data management technology engineering. We work for a broad range of clients from Fortune 500 technology leaders to small innovative startups building unique solutions.

As Apriorit offers integrated research&development services for the software projects in such areas as endpoint security, network security, data security, embedded Systems, and virtualization, we have strong kernel and driver development skills, huge system programming expertise, and are reals fans of research projects.

Our specialty is reverse engineering, we apply it for security testing and security-related projects.

A separate department of Apriorit works on large-scale business SaaS solutions, handling tasks from business analysis, data architecture design, and web development to performance optimization and DevOps.

Official site: https://www.apriorit.com
Clutch profile: https://clutch.co/profile/apriorit
This is a Organisation

33 members
Instructor / Trainer
India India
Hi,
I have been working with computers since my eight grade, programming the ZX Spectrum. I have always had an interest in assembly language and computer theory (and is still the reason for taking tons of online courses), actively code using C/C++ on Windows (using VS) and Linux (using QT).

I also provide training on data structures, algorithms, parallel patterns library , Graphics (DX11), GPGPUs (DX11-CS,AMP) and programming for performance on x86.
Feel free to call me at 0091-9823018914 (UTC +5:30)



(All views expressed here do not reflect the views of my employer).
Software Developer Oracle
United States United States
Interested in mathematics and english literature.
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 McKesson Practice Partner
United States United States
Corey Frost is a software engineer with McKesson Practice Partner in Seattle, WA. He has been developing software since 1990 and specializes in Windows and web application development using C++, MFC, C#, and ASP.NET.
Hong Kong Hong Kong
Chris H.F. Tsang
tyt2y3@gmail.com
Software Developer
Hungary Hungary
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
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.
Software Developer (Senior)
United States United States
Professional Experience
Languages: C++, C#, VB, .Net, SQL
Systems: MSSQL Database Architecture, Server Admin, MS System Center Admin(Service Manager)
Web: Asp.Net, Ajax, Web design and deployment
Other: MS Access guru
Software Developer
Ireland Ireland
My first program was written in Basic on a Sinclair Spectrum ZX 16K in the summer of '85. Having studied Computer Systems I attempted to break into the world of C but took a wrong turn and got immersed in COBOL!

I looked a C again in 1994 but didnt follow up on it. In 2001 I introduced myself to Visual C++ 6.0 courtesy of Ivor Hortons book, but found the going difficult. I tipped my toe in the .NET water in '05 but the first example I tried in VC++ 2005 express didnt work and allied with the absence of MFC in the express package, I parked that up.

Along the way my career got shunted into software testing

A personal machine change force me to migrate to VS2008 in 2008. The new edition of Ivor Hortons book for VC++ in VS2008 reintroduced me to .NET and I got curious whereupon I went out and acquired Stephen Fraser's "Pro Visual C++/CLI and
the .NET 3.5 Platform". I was hooked!

After 20 years I think I finally found my destination.

But it would take a further 8 years of exile before I was reappointed to a developer role. In that time I migrated to C# and used selenium wedriver (courtesy of Arun Motoori's Selenium By Arun) as the catalyst to finally grab the opportunity.
Employed (other) http://www.otpbank.hu
Hungary Hungary
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
Software Developer (Junior)
Germany Germany
Eager to show what I can do, but still haven't had the chance todo so.
Web Developer
Canada Canada
As a professional software developer with more than 6 years experience, I've involved in a variety of projects in many areas. I started with developing desktop applications for Windows 95 (both 16-bit and 32-bit programs), moved to developing client/server applications using Windows NT technologies, and now I'm up to my ears working with .NET development.
Founder SmartTick Software Inc.
Canada Canada
Jerry Jiang(BOLIANG JIANG)

A passionate software developer since 1992

Education:Master of Computer Science.

jerry@smarttick.com
Engineer --
Spain Spain
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.
Israel Israel
I consider software development a craft that mixes engineering, science, and art, and is an utmost form of self-expression.

Comparing software languages to musical instruments, C is the harpsichord, C++ is the piano, and C# and java are electronic synthesizers. I would choose the piano!

Enjoying a grand piano (C++ 11/14/17), I am playing Classical music (that's mathematics and algorithms). Sometimes Jazz. When needed, I'll play Big band or even Acid. I'll leave Rave for others.

I can be reached at koganlior1 at gmail dot com
United States United States
Rob Farber is a senior scientist and research consultant at the Irish Center for High-End Computing in Dublin, Ireland and Chief Scientist for BlackDog Endeavors, LLC in the US.

Rob has been on staff at several US national laboratories including Los Alamos National Laboratory, Lawrence Berkeley National Laboratory, and at Pacific Northwest National Laboratory. He also served as an external faculty member at the Santa Fe Institute, co-founded two successful start-ups, and has been a consultant to Fortune 100 companies. His articles have appeared in Dr. Dobb's Journal and Scientific Computing, among others. He recently completed a book teaching massive parallel computing.
Software Developer (Senior)
Germany Germany
MVP for C++ in Germany from 2000 up to 2015.
Developer since 1979, working with C/C++ since 1982
Started with Windows development in 1990

Love my bicycles (specially my recumbent) and geocaching
http://blog.m-ri.de/index.php/category/real-life/fahrrad/
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
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)
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) An engineering firm in Cedar Rapids, Iowa
United States United States
I'm also on the MSDN forums
http://social.msdn.microsoft.com/profile/paulh79
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)
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.
Team Leader
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
Sweden Sweden
have 5+ years of experience working as a software developer. My main area is the .NET platform and C# is my main language.
I am an experienced consultant and has worked both as an on-site consultant aswell as an in-house developer. Apart from developing software I have also been involved with training of end users, writing documentation, test and 3rd line support.

I have working with projects in several different industries such as Oil/Gas, Nuclear Power ,Telecoms, Defense and Life Science. Working in serveal different fields have given me broad technical experience
and understanding of the demands within the different fields. My work experience ranges from developing industrial automation systems ,realtime systems, traceability systems to web based SMS payment portals.

Most of my experience is on the .NET platform but I have also worked with C++ and Java. With databases I have worked mostly with Microsoft Sql server and Oracle but I also have good knowledge of open source databases such as MySql and MariaDB
Within Web development have worked mostly with the ASP.NET MVC architecture. I have worked mainly with backend development in C# but have also been working with frontend using Jquery, HTML5 and CSS. I have also been doing a project developing an Android app for a homeautomation system using Android Studio.

I have a great interest in learning new technologies and I am a fast learner. Javascript is a area of focus right now and technologies such as asynchronous serverside JavaScript(Nodejs), realtime web applications with websockets(socket.io) and peer2peer based videostreaming wirh webrtc are currently taking a lot of my sparetime.
Other areas of interest are php based cms systems such as Wordpress and being a Google fan software development on the Android platform is a must. Currently i am exploring the Android Wear SDK. Love that Android Studio finally came.
Technical Lead
United Kingdom United Kingdom

A youthful, enthusiastic (albeit dead) amphibian coder writing software for a financial information firm based in the UK.



Website may come in the future, if I have time...

Architect
India India
Selvam has worked on several technologies like Java, Python, Big data, VC++, MFC, Windows API and Weblogic server. He takes a lot of interest in reading technical articles and enjoys writing them too. He has been awarded as a Microsoft Community Star in 2004, MVP in 2005-06, SCJP 5.0 in 2009, Microsoft Community Contributor(MCC) 2011.

Big Data
o Google Professional Data Engineer 2021
o Confluent Certified Developer for Apache Kafka 2020
o Datastax Apache Cassandra 3.x Developer Associate Certification 2020
✓ Cloud
o Google Professional Cloud Architect 2021
o Microsoft Certified: Azure Solutions Architect Expert 2020
o AWS Certified Solutions Architect - Associate 2020
✓ Oracle Certified Master, Java EE 6 Enterprise Architect (OCMEA) 2018

Github : https://github.com/selvamselvam
Web site: http://www.careerdrill.com
Linkedin: https://www.linkedin.com/in/selvamselvam/
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 Samsung SURC
Ukraine Ukraine
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.
Technical Lead
India India
Likes painting and photography too.
Team Leader American Institute for Research
United States United States
Working as a Team leader in American Institute for Research
You must sign in to participate in this contest.
This contest has ended.
1 May - 31 May 2011