We need you!

We're working hard on the next version of Developer Fusion. Let us know what you think we should be up to!

Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Joseph M. Newcomer Profile

photo Joseph M. Newcomer (flounder)
13 Oct 2001
Pittsburgh, US United States
Consultant/author/teacher
http://www.flounder.com
Contact memberContact this Member Edit ProfileEdit my profile

This user has contributed 15 articles, 3 code samples and posted 0 messages in our discussion forums.

Technology Interests

      Articles & Tutorials

    • A guide to sorting

      by flounder

      Learn two sorting algorithms, and how to use these to sort CListBox, ComboBox, and CListCtrl controls. Read full article

    • Avoiding UpdateData

      by flounder

      Why you should never call UpdateData yourself. Read full article

    • Dialog Box Control Management

      by flounder

      Why you should never call EnableWindow or other such calls except in one central place. Think of control enabling as a set of constraint equations. Much easier to maintain if the computations are centralized. Find out how I do it, and why I think this is a good way to do it.. Read full article

    • A Validating Edit Control

      by flounder

      Have you ever wanted a control that only accepted valid values and gave feedback to the user? This is a little project that illustrates the techniques for building a validating edit control.. Read full article

    • Message Management

      by flounder

      The use of user-defined messages gives you additional power and control over your application, and provides an often convenient method for passing information between threads and applications. This essay goes into considerable depth on how to handle user-defined messages, inter-thread messages, and . Read full article

    • Attaching and Detaching Objects

      by flounder

      When 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.. Read full article

    • Worker Threads

      by flounder

      This describes techniques for proper use of worker threads. It is based on several years' experience in programming multithreaded applications.. Read full article

    • Avoiding Multiple Instances of an Application

      by flounder

      In 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, . Read full article

    • Using User-Interface Threads

      by flounder

      I discovered the utility of user-interface threads a few weeks ago. This essay captures what I learned. In particular, there are some interesting issues of thread initialization that are not readily addressed. This also discusses why a user-interface thread may have no GUI objects associated with it. Read full article

    • Optimization: Your Worst Enemy

      by flounder

      Optimizing a program before you know where the time is going is a meaningless activity. It wastes your time, produces code that is harder to write, harder to debug, and harder to maintain, than unoptimized code. This essay discusses some of the issues of why you should not do pre-optimization.. Read full article

    • Surviving the Release Version

      by flounder

      OK, 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. . Read full article

    • A Checksum Algorithm

      by flounder

      Historically, checksums have been used to increase data transmission reliability, whether from a serial line or network, tape drive, or disk drive, among the many data sources that require reliability checking. However, checksums have other uses, such as in dialog box change-state maintenance, docum. Read full article

    • Avoiding GetDlgItem in MFC

      by flounder

      My 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. . Read full article

    • Saving the DC context

      by flounder

      Having trouble keeping your DC intact? Here's an article on how to do this far more easily using ::SaveDC/::RestoreDC, or CDC::SaveDC/CDC::RestoreDC, as well as a C++ class to make it even easier. Read full article

    • Process Management

      by flounder

      Some techniques for managing processes in a program. Oriented to MFC programmers, since it includes MFC examples and defines a class for asynchronous process completion notification.. Read full article

      Code Samples

    • Creating your own GUIDs

      by flounder

      GUIDs are a useful entity to guarantee that you have a unique name for a kernel object, Registered Window Message, clipboard format, or other object that must be guaranteed to be unique. However, there are times when a program needs to create a GUID; for example, a program that writes .h files. This essay tells how I created my own unique IDs. . Read full article

    • Screen Capture to the Clipboard

      by flounder

      This is a very simple subroutine that illustrates a technique for capturing the bitmap of an arbitrary window, and then shows how to save it to the clipboard.. Read full article

    • Asynchronous Process Notification

      by flounder

      This example consists of a simple dialog-based application that can launch another application and have the GUI remain alive while the launched process runs, instead of just blocking and being non-responsive.. Read full article