How to implement a polymorphic interface DLL

The following code fragments show a simple implementation of a polymorphic interface DLL.

The DLL being implemented is the one whose interface is defined by the CMessenger class.

This example implementation issues a greeting in French.