You have to add ole32.lib to the dependencies list. That's where the function is defined.