C++ Tutorials & Articles
-
Avoiding Multiple Instances of an Application
by Joseph M. NewcomerIn Win16 it was easy: you looked at the hPrevInstance parameter to WinMain and if it was nonzero, you were the second instance. Done. In Win32 it isn't as easy. And there are several wrong ways, and some that don't work at all. This essay explores the techniques and tells you what the pitfalls are,
-
Introduction to Class Programming Part II
by Dante SalvadorIn this series articles, we are going to discuss about: Enumeration, Properties that return an Object and other semi-advance topic pertain to in creating a class base program
-
Programming in C++
by Mike WareC++ tutorial covering comp sci background, syntax, data types, operators, type conversion, logical expressions, control structures, formatting output, functions, pointers, arrays, array-type problems, user-defined types, header files, structures, enum types, graphics, classes, function/operator overloading, static variables, and much more. A must read for anyone learning C++.
-
AI 1 - Problem Solving (Artificial intelligence)
by Chris StonesA console C++ tutorial covering the basics of problem solving using different AI techniques.
-
Direct Input 8
by David NishimotoHow to implement Direct Input 8 for the mouse and keyboard in MFC
-
Surviving the Release Version
by Joseph M. NewcomerOK, you've built the project, debugged it, and you're ready to ship. You compile the Release version of the program, and your world crumbles to dust. Find out what can be wrong, and what you can do about it.
-
Attaching and Detaching Objects
by Joseph M. NewcomerWhen you create an Windows-related object in MFC, you are actually creating a "wrapper" around the underlying object. There are interactions between MFC and Windows which can get you into serious trouble if you are not careful. Read this to learn more.
-
Typical errors of porting C++ code on the 64-bit platform
by Andrey KarpovProgram errors occurring while porting C++ code from 32-bit platforms on 64-bit ones are observed. Examples of the incorrect code and the ways to correct it are given. Methods and means of the code analysis which allow to diagnose the errors discussed, are listed.
-
Test-Driven Development in .NET
by Peter ProvostAn article presenting benefits and techniques for using test-driven development in .NET, specifically examining the NUnit testing framework.
-
How the .NET Debugger Works
by Jon ShuteIn theory the .NET debugging API is simple and a joy to use, but there is a lack of a detailed overview as to how to use it in the framework SDK. In this article, we'll cover how to write a debugger under .NET, and will also touch on the profiling API support.
-
How to PING
by Randy Charles MorinIntroduces Internet Control Message Protocol (ICMP) and how to generate ICMP packets to send a "ping" in C++.
-
Handling multiple socket read & write operations
by Len Holgate"How do you handle the problem of multiple pending WSARecv() calls?" is a common question on the Winsock news groups. It seems that everyone knows that it's often a good idea to have more than one outstanding read waiting on a socket and everyone's equally aware that sometimes code doesn't work right when you do that. This article explains the potential problems with multiple pending recvs.
-
.NET Threading Part II
by Randy Charles MorinThis is the second article of two parts on .NET threading. In this second part, I will discuss further the synchronization objects in the System.Threading .NET namespace, thread local storage, COM interoperability and thread states.
-
AI 2 - Game Playing (Artificial intelligence)
by Chris StonesPart 2 of my Artificial intelligence tutorial. Extends what you learn in the first tutorial and explains the techniques needed to program a 2 player Game (human vs computer) uses tic tac toe as an example.
-
XP, Component Services and .NET
by John GodelLearn about the changes introduced by COM+, new features included in Windows XP for COM+, and how to use COM+ services from your .NET programs.
-
A reusable Windows socket server class
by Len HolgateWriting a high performance server that runs on Windows NT and uses sockets to communicate with the outside world isn't that hard once you dig through the API references. What's more most of the code is common between all of the servers that you're likely to want to write. It should be possible to wrap all of the common code up in some easy to reuse classes.
-
Calling a C++ DLL from Visual Basic
by Kevin SaittaKevin Saitta takes you through the steps of creating a C++ dll and then calling it from VB.
-
COM Interoperability in .NET Part 2
by G.Gnana Arun GaneshThis article elucidates how to build and install-managed code that will be used from COM applications. A classic COM server is activated using the Service Control Manager (SCM).
-
A Quick view from C/C++ to C#
by John GodelA quick view from C/C++ to C#, the new .NET language from Microsoft
-
Avoiding GetDlgItem in MFC
by Joseph M. NewcomerMy view: If you're writing more than one GetDlgItem per year, you're probably not using MFC correctly. Find out why, and what to do about it.