A buffer overflow is the result of writing to an element that is outside the boundaries of an array. And yet, certain algorithms need to access the address of one element past the end of an array, albeit with a few important restrictions. Here's the why and how.
Latest C++ Articles - Page 5
Discover how to start and control a third party GUI application, particularly the Notepad text editor, from your own C++ applications.
During the glory days of MFC and ATL in the 1990s and early 2000s, The Visual C++ class wizard was a highly-used and useful IDE tool that simplified life for developers. The re-introduction of the class wizard, after the absence of a decade, demonstrates commitment to the 'glory day's' ideal and adds simplicity to class management tasks inside the IDE.
Discover how to deal with C4996 warning, what secure CRT functions are and how to correctly use them.
This article describes how to create stack based allocators for use with STL containers.
C++0x introduces two new function specifiers: =default and =delete. The former instructs the compiler to implicitly define a member function that it wouldn't define otherwise. The latter suppresses the implicit definition of a member function. Find out how to use this mechanism to reduce labor-intensive tasks, improve performance, and make your classes more secure.
Latest Developer VideosMore...
Latest CodeGuru Developer Columns
Discover Code::Blocks, an open source IDE for C/C++.
Explore the basics of accessing a Twitter account and look at the ways we can search and interact with the data available to you.
Learn how to create a little Instagram app with Visual Basic.
Arun Karthick introduces you to the state machine model and shows you how to create a simple working state machine sample using the .NET framework in the C# language.