Click here to Skip to main content
15,905,233 members
Articles / Desktop Programming / MFC

Dr. Joseph M. Newcomer's MVP Tips, Techniques, and Goodies

Rate me:
Please Sign up or sign in to vote.
4.11/5 (4 votes)
17 May 2000CPOL 63.9K   59   2
A collection of code examples and essays that I've often posted to the newsgroup and other places


Microsoft has been rewarding me for the last few years for my contributions on the microsoft.public forums by designating me as one of the Microsoft MVPs. This page is the root of my "MVP Tips" sub-Web. You can see my whole site by going to my home page.

This page is inspired by the very useful page of Bob Moore's MVP Site. I will attempt to not duplicate anything already on his page.

What I'm putting in here, besides code examples, are little essays that I've often posted to the newsgroup and other places. Rather than keep posting them, I'm collecting my essays in one place.

Some of these essays are intended for beginners, pointing out useful techniques. Some are for experienced programmers poking into previously unknown areas of MFC. Some are advanced techniques, highly specialized. Some are simply my take on "best practice", style issues I feel strongly about, and which are not addressed adequately by the Microsoft documentation, and in some cases which have a folklore of incorrect methodology which is promulgated on the newsgroups. Be prepared for a variety of discussions.

Note that these essays represent, in many cases, my opinion of the right way to do things. Other people have other opinions. Microsoft may have yet a different opinion. The views expressed in these essays are those of the author, and in no way represent, nor are they endorsed by, Microsoft. Or anyone else, as far as I know.

I've sometimes been asked how I dare to differ from Microsoft's opinion. Well, the answer is simple: their opinion may not be right. In some cases, Microsoft's views represent one programmer's view of how to do something, and I find nothing wrong with disagreeing with another programmer. Just because Microsoft has enshrined that opinion as company policy (for example, "Hungarian notation"), doesn't mean that it is "right" or "sensible". Just that one opinion has become pervasive in one culture. (After all, if using "m_" was the only correct and sensible way to designate member variables, don't you think Bjarne Stroustrup would have designed the language that way and no other? He didn't, and I'd offer that he's as competent as Simonyi. Just a matter of opinion).

Disagree with me? Have a better idea? Fine. Send me a pointer to an essay on your Web site. If I think you have written something reasonably coherent on the subject, I'll even put a pointer to your site in my essay, even if I disagree with it. And if you find a bug or something demonstrably incorrect in one of my essays, or code examples, let me know and I'll fix it and even give you a wave of the Flounder Fin. (Or even, as it turns out, put your remarks on my Web site, with your permission. Already I've got feedback that revised my essays on Attaching and Detaching Objects and Avoiding UpdateData).


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Written By
United States United States
PhD, Computer Science, Carnegie Mellon University, 1975
Certificate in Forensic Science and the Law, Duquesne University, 2008

Co-Author, [i]Win32 Programming[/i]

Comments and Discussions

General"Auto-Increment of the Build Count" Link is not working. :doh: Pin
G Haranadh19-Apr-10 18:43
G Haranadh19-Apr-10 18:43 
Dear Doctor,
"Auto-Increment of the Build Count" Link is not working. Frown | :(

Nice talking to you. Blush | :O
If you judge people, you have no time to love them. -- Mother Teresa

GeneralWin32 Programming Pin
Paul Selormey18-May-00 0:23
Paul Selormey18-May-00 0:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.