Boris Kuznetsov said:
This occurs in an empty project when I add the following string:
#using <mscorlib.dll>
First let's ask: What prompted you to write such a line?
Can anyone tell me why would #using ... not be working????
Well, it doesn't work in the standard C++ language (the only topic here),
because it has no such directive. Did you perhaps really intend to
write:
#include said:
MSDN says nothing about this error.
It certainly does.
From
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore/html/C1021.asp
== begin quote ==
Visual C++ Concepts: Building a C/C++ Program
Fatal Error C1021
invalid preprocessor command 'string'
string is not a valid preprocessor directive. To resolve the error,
use a valid preprocessor name for string. The following sample
generates C1021:
// C1021.cpp
#BadPreProcName // C1021, delete line
int main() {
}
== begin quote ==
Please advice what to do??
Use a valid preprocessor directive, or if that string is some
special Microsoft extension, consult your documentation and/or
a Microsoft specific newsgroup about how to use it, when, why,
etc.
-Mike