Newbie: C++ Net SQLConnection -undeclared identifier

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I created a Windows Forms App in Visual Studio and included the following namespace line

using namespace System
using namespace System::ComponentModel
using namespace System::Collections
using namespace System::Windows::Forms
using namespace System::Xml
using namespace System::Data
using namespace System::Drawing
using namespace System::Data::SqlClient

In a button click event I entered the line:

SQLConnection *objConn
When I compiled I got 'undeclared identifier'. Do I need to provide a prototype in addition to the SQLClient namespace
Any help for this newbie would be much appreciated

Thank
Ro
 
Back
Top