Bob Moore's Coding Tips

This site is intended to help fellow developers, and also to explain a little about me (go to the "Your Host" pages to find out more). It exists as somewhere I can refer people to, rather than having to cut and paste the same code into UseNet messages a zillion times over. The site contains over 70 useful code fragments and tips for Windows programmers, and also links to related sites which fellow sufferers at the forge of Microsoft might find interesting : see the buttons on the left.

Note - the MFC samples on this site are no longer actively maintained as I am now working mainly in Delphi and C#. My work in C++/MFC will continue, but at a fairly low level. Feel free to refer others here, the site will be maintained at its current URL to function as an FAQ, so others can refer to it in UseNet postings.

The code is quite old, so don't expect to see much in the way of proper Unicode text handling etc. It's not necessary to demonstrate the principles, and I can't be bothered to update this much code, so let's just both pretend it's there, OK?


What's New: 

Added New Stuff
8th March 2009 Added .Net tip 3, Why does my .Net WCF client throw a SOAP negotiation error?.

You can contact me by mailing bobm at mvps.org. Please let me know if the site has been of assistance to you, or if you've found a bug in the HTML (or a bug in a code sample), or if you would like to see additional features or samples.

But.... if you have a specific programming problem, post it publicly on one of the following Usenet newsgroups :

microsoft.public.vc.language
microsoft.public.vc.mfc
microsoft.public.win32.programmer.ui

(or post it to Stack Overflow)

because I never respond to direct unsolicited email.

Oh and by the way - I do NOT work for Microsoft. Never have done. Those MVPs who went to work for Microsoft had to give up their membership of the program, and now I'm not an MVP any longer (eight years was long enough anyway), I probably won't get the chance. I didn't take the chance of an interview when it was offered : mostly because I wouldn't give up being a developer to be a support person, but partially because I don't like what Microsoft has become.