Visual Studio: Forward declaration of enum type is nonstandart

Hello.

I have some strange issues with programming (C++). I followed API examples.

First there was a complain from VS, that it can't find sldworks.tlh and swconst.tlh files (wich do not exist in SW folder), nevertheless it compiled.

I succesfully acquired document title, type and path at first time. But then some errors occured out of nowhere!

"Forward declaration of enum type is nonstandart" occurs when I try to create ATL pointer (and it refers to .tlh file wich does not exist in sw folder).

After rebooting and deleting the entire project nothing changed. I can't get it. How it could go wrong without me changing anything?

Does anybody know what is it all about?

SolidworksApi macros