Can System.Windows.Forms be used from a DLL???

  • Thread starter Thread starter PeteOlcott
  • Start date Start date
P

PeteOlcott

I am getting compile time errors from the following line:
using namespace System::Windows::Forms;

Error 1 error C3083: 'Windows': the symbol to the left of a '::'
must be a type
Error 2 error C2039: 'Forms' : is not a member of 'System'
Error 3 error C2871: 'Forms' : a namespace with this name does not
exist
 
PeteOlcott said:
I am getting compile time errors from the following line:
using namespace System::Windows::Forms;

Error 1 error C3083: 'Windows': the symbol to the left of a '::'
must be a type
Error 2 error C2039: 'Forms' : is not a member of 'System'
Error 3 error C2871: 'Forms' : a namespace with this name does not
exist

Besides adding the reference, as others have said, be careful with your
syntax, since you are using double colons where you need single dots:

using System.Windows.Forms;
 
I am getting compile time errors from the following line:
using namespace System::Windows::Forms;

Error  1  error C3083: 'Windows': the symbol to the left of a '::'
must be a type
Error  2  error C2039: 'Forms' : is not a member of 'System'
Error  3  error C2871: 'Forms' : a namespace with this name does not
exist

If its a C#,

it is "." not "::"

add using sytem.Windows.Forms instead of system::Windows::Forms

-Cnu
 
Back
Top