I m using vc++ with ado and i want to insert data into spatial datatype column using vc++,
But i m not able to insert ,
My code is
CString FieldName=(TCHAR*)tmpColumn->ColumnName;
HRESULT hr=field->put_Value(COleVariant(tempValue));
here FieldName shows the column name
and tempValue is CString type and consists the following values
('point(2 4)').
So plz tell me how to execute .