Discussion:
Compile error: Can't include "atlstr.h"
(too old to reply)
c2
2008-01-02 07:45:39 UTC
Permalink
Happy New Year!

I'm having an extremely basic problem. I seem to have messed up my
Visual Studio environment, I can no longer include "atlstr.h". Here's
a simple example: in Visual Studio I can create a new ATL project and
(unsurprisingly) it compiles just fine. However, adding '#include
"atlstr.h"' to any file generates 112 errors. The first error is in
cstringt.h, line 96: "syntax error: missing ';' before identifier
'm_data'". Apparently CStringData isn't getting defined, as line 96
is: "CStringData m_data;"

I have no idea what's going on. I have projects that used to build
but now they all complain of the same errors. I feel like I must have
messed up a configuration setting somewhere, but I haven't found
anything yet. Has anyone seen this before?

Thanks in advance!
Colin
Bruce Wee
2008-01-03 13:55:02 UTC
Permalink
You should have a try: vs->tools->import and export settings->reset all
settings
Post by c2
Happy New Year!
I'm having an extremely basic problem. I seem to have messed up my
Visual Studio environment, I can no longer include "atlstr.h". Here's
a simple example: in Visual Studio I can create a new ATL project and
(unsurprisingly) it compiles just fine. However, adding '#include
"atlstr.h"' to any file generates 112 errors. The first error is in
cstringt.h, line 96: "syntax error: missing ';' before identifier
'm_data'". Apparently CStringData isn't getting defined, as line 96
is: "CStringData m_data;"
I have no idea what's going on. I have projects that used to build
but now they all complain of the same errors. I feel like I must have
messed up a configuration setting somewhere, but I haven't found
anything yet. Has anyone seen this before?
Thanks in advance!
Colin
Loading...