Recordsets and VC++ .NET

Just got Visual C++ .NET and am having a problem that I can't figure out. I am trying to use the CRecordset::GetFieldValue function. .NET is giving me errors telling me that it can't convert from a CString to a CDBVariant.

I'm using it like this:

recordset.GetFieldValue("Field", TestString);

This works fine in VC++ 6.0, but now it doesn't work in .NET?? Am I doing something wrong? I selected to create a regular dll file, but everywhere that I call this it tells me the same error.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!