When i try compile my code i have error
error C3673: Oracle::DataAccess::Client::OracleDataReader: the class has no copy constructor
And i can’t find OracleDataReader component. There is code
Form1(void)
{
InitializeComponent();
String^ ConStr = "User Id=user;Password=password;" +
"Data Source=db;";
oracleConnection1->ConnectionString= ConStr;
oracleConnection1->Open();
oracleCommand1->Connection= oracleConnection1;
oracleCommand1->CommandText = "select * from sometable";
oracleCommand1->CommandType = CommandType.Text;
oracleCommand1->ExecuteNonQuery();
OracleDataReader data= gcnew Oracle::DataAccess::Client::OracleCommand() ;
data = cmd.ExecuteReader();
}
Can anyone tell what i’m doing wrong?
P.S. I use VS Express Edition.
1 Answer