Click here to Skip to main content
15,895,656 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am trying to use the following two statements in a program I am working on:

using System.ComponentModel;
using System.Runtime.CompilerServices;

My compiler is giving me the following errors for this code:

Error IntelliSense: identifier "System" is undefined
Error IntelliSense: expected a ';'
Error IntelliSense: identifier "System" is undefined
Error IntelliSense: expected a ';'
Posted
Comments
Sergey Alexandrovich Kryukov 22-Apr-15 16:14pm    
Strictly speaking, this is not C++, but C++/CLI...
—SA

1 solution

It could be:
C++
using namespace System;
using namespace System::ComponentModel;
...

And so on… Why doing any programming without reading on the language syntax? (As well as everything else. :-))

—SA
 
Share this answer
 
v3
Comments
nv3 22-Apr-15 17:39pm    
That's what I also always wonder about. Why don't people read manuals before they start. Reading seems to be very painful for some people :-)
Sergey Alexandrovich Kryukov 22-Apr-15 18:47pm    
And to some, writing, or both. But I can, for example, also load manure without any problems. I was wondering: how about those people working preferences? :-)
Thank you,
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900