Hi:
I'm trying to add a parmater of OleDbType SmallInt. It supposed to map to
int16, so I do the following:
OleDbParameter* pP2 = new OleDbParameter( S"FK_tblRace s",
OleDbType::Smal lInt, 0);
pP2->Value = Int16(5); // 5 is value
this->oleDbInsertCom mand1->Parameters->Add(pP2);
It bombs because not object*. How do you get object* of Int16?
Thanx,
Charlie
I'm trying to add a parmater of OleDbType SmallInt. It supposed to map to
int16, so I do the following:
OleDbParameter* pP2 = new OleDbParameter( S"FK_tblRace s",
OleDbType::Smal lInt, 0);
pP2->Value = Int16(5); // 5 is value
this->oleDbInsertCom mand1->Parameters->Add(pP2);
It bombs because not object*. How do you get object* of Int16?
Thanx,
Charlie
Comment