Had to add uuid.lib and ole32.lib to the build
You're right, but still there is something missing.
A call to CoInitializeEx() must be done before calling CoCreateInstance(). After I added that, it worked perfectly.
So, you put me in the right direction.
Thank you very much, John.
(The final working project is attached)