MFC - Getting BLOB from MySQL Field
Posted by: Austin Harvey
Date: June 16, 2011 04:12AM

Hi

I have a simple task to transfer data from multiple tables in a MySql database into a single table.

I am using MFC for the task (simply because I haven't programmed in C# or C++ for about 5 years Frown | :( )

I need to jog my memory on Variable and strings etc so could someone help me with the following question.

I am using CRecordSet -> GetFieldValue(). Now this is fine for my text fields etc, but when it comes to a BLOB, or MEDIUMTEXT I'm struggling with an error.

CString sProdName;
sections.Open(CRecordset::snapshot,SqlString);
sections.GetFieldValue(_T("Section text"),sProdName);

Should I be creating another type of variable to read this information in ? I don't need to do anything with it apart from write it straight back out.

Thanks.
Austin.

Options: ReplyQuote


Subject
Views
Written By
Posted
MFC - Getting BLOB from MySQL Field
2135
June 16, 2011 04:12AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.