I'm using Visual C++6 and I want to add a new record in a recordset.
I must use the C_Recordset::AddNew(const VARIANT& FieldList, const VARIANT& Values) method
I don't know how to create the arrays to pass to the AddNew method. I saw that I should use SafeArrays but I can't find clear examples in C++...

For example my table contains those fields:
Ident : integer, primary key
Name : string
Number : integer

how do you write the code for inserting a new record?

Thank you!