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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

'Data' : is not a member of 'System'

Status
Not open for further replies.

raydona

Programmer
May 12, 2005
27
GB
I am building a class (static) library using C++ to access a database in Visual.Net. I have declared:
using namespace System;
using namespace System::Data;
below #pragma once.
I get the compiler errors:
error C2039: 'Data' : is not a member of 'System'
error C2871: 'Data' : a namespace with this name does not exist
This is despite adding a reference to System.Xml (DataSet class defined in this) in the Add Reference dialog box. How can I overcome these errors? I would be grateful for any suggestions.
 
this is c# not c++. try a c++ forum instead.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top