C++/VB - C2275: illegal use of this type as an expression? It's a DWORD?

Asked By ki on 10-Jun-07 05:45 AM
Hi,


To follow up on Ulrich's response, and alluding to a related thread: is this
a .c or .cpp file?

That is, does it compile with the C++ compiler or the C compiler?

- Kim


kilik300 replied on 06-Jun-07 08:36 AM
his

This is the issue.  Thanks.

In VS if the source file ends in .c *it fails*. If the source file
ends in .cpp *it succeeds*.

Is there even a way to compile "C compliant" code in VS 2005. Or do
you always have to use a C++ compiler?

Why don't they both work? This is more of a curiosity on my part.

-Thx