G
Gary
I have a strange compile error. C2664 cannot convert parameter 2 from int to
int...
Earlier in my code I was setting up my dataset...
I add an int field like so...
Books->Columns->Add("Volume",System::Type::GetType(S"System.Int32"));
Then below I try to add an int value to it.
Nr->Item[S"Volume"] = Volume;
(Nr is a new Datarow of the table "books"
And get this error:
error C2664: 'void System:ata:ataRow::set_Item(int,System::Object __gc
*)' : cannot convert parameter 2 from 'int' to 'int'
I checked to see if it was because the column and the variable have the same
name but setting it to the value 1 also caused the same error.
What am I doing wrong?
int...
Earlier in my code I was setting up my dataset...
I add an int field like so...
Books->Columns->Add("Volume",System::Type::GetType(S"System.Int32"));
Then below I try to add an int value to it.
Nr->Item[S"Volume"] = Volume;
(Nr is a new Datarow of the table "books"
And get this error:
error C2664: 'void System:ata:ataRow::set_Item(int,System::Object __gc
*)' : cannot convert parameter 2 from 'int' to 'int'
I checked to see if it was because the column and the variable have the same
name but setting it to the value 1 also caused the same error.
What am I doing wrong?