I'm kind of new to MFC so this might be quite an easy question for some, but I haven't been able to find the answer anywhere.
I'm writing an application that uses DAO to access an indexed database and read the contents of a field. This is the procedure I'm following:
(1) set the index
(2) call the seek method
(3) If matches are found, get a particular field from the matching record.
Now, I know that that field will give me a string, but the GetField method of the DaoRecordset class returns a cOleVariant variable with the information inside. I desperately need to extract the string out of the cOleVariant object but don't know how. Please help if you can.