these are samples, not complete applications. The code (and coding style) is not meant to be industrial strength; it's not even well-designed. The sole purpose of the samples is illustrating a point, not teaching proper coding style.
Why it is not replaced by COM, how it works, network DDE, links to other sources of information. DDE is support is being removed from Windows (Windows 7 x64 seems to have an issue with it)