I am using VC++ 6.0 and MFC
I select a recordset and then try using GetFieldValue.
This works except for when the field is of type uniqueidentifier (SQL Server 2005)
In that case, the following code fails:
It crashes in dbcore.cpp in this function:
void* PASCAL CRecordset::GetDataBuffer(CDBVariant& varValue,
in which it is doing a switch on the field type, and it asserts because, it would seem, uniqueidentifier is not a type of field the MFC class recognizes.
So how do I capture a field value of this type into a CString in my MFC code?