Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

error c2006: '#using'; expected a filename, found 'namespace' 1

Status
Not open for further replies.

davebh

Programmer
Feb 16, 2005
7
0
0
GB
I am trying to draw on a form, so I want to include

#using namespace System, but it kicks up the errors

c2006:#using';expected a filename, found 'namespace'

&

c1190:managed targeted code requires '#using <mscorlib.dll>
and '/clr' option.

any ideas.

My apologies if my questions are basic, I am new to Windows programming and the only thing that seems the same is the actually language syntax.
 
The 'using' keyword isn't a preprocessor directive, so don't include the # at the beginning.
Code:
using namespace System;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top