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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top