Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

CRecordSet doesn't read UNICODE text

$
0
0
I realized the reason why my CRecordSet object is not reading UNICODE text is the RFX_Text_Bulk macro. The documentation says it does NOT support UNICODE which is really way too much behind on UNICODE and hard to believe!

But there gotta be a way, how do I fetch the UNICODE text?

It seems like there is LPWSTR version of RFX_Text_Bulk after all which is not documented and I tried that but still no luck.

I am trying to use function cloning to implement my own RFX_WText_Bulk macro which will work with UNICODE but it is not clear how do I access the raw data of the column to begin with.

I realize I do have CFieldExchange *pFX pointer which I assume should have the raw data from recordset somewhere but is not clear where.

Any hint will be very much appreciated so I can read the UNICODE text from database (Sql server). Is there any other macro for that which will do the job?

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images