hit counter for blogger

Errors and Solution (Windows Dev)

All errors and solutions apply to XP dev environment using Microsoft Visual Studio 2008

1. While building Watir Script Generator project, I got these errors:

1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(500) : error C2065: ‘LPCOLESTR’ : undeclared identifier

1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(500) : error C2146: syntax error : missing ‘)’ before identifier ‘x’

1>c:\program files\microsoft platform sdk\include\atl\atlconv.h(500) : error C2433: ‘ocslen’ : ‘inline’ not permitted on data declarations

The problem was due to that I added the wrong ATL include directory and should have just let the compiler find the suitable one. To remove a include path from Tool, I went to “Tool”->”Options”->”Project and Solutions”->”VC++ Directories”, then from the  rght panel, select “C++ Includes”. Then I delete an entry : “C:\Program Files\Microsoft Platform SDK\Include\atl”, which contains the atlconv.h.

This is my the Tool Options look like when the project compiled successfully.

vstudio change tool include