The declaration itself is in combaseapi.h, but you don't include that one. Objbase.h includes that one in line 27. Therefore, #including Objbase.h will give you CoCreateInstance() as promised. I just tested this in an empty project (console
type) in Visual Studio 2012 Ultimate. I am getting the function just fine.
Jose R. MCP
Code Samples