Click here to Skip to main content
13,095,921 members (53,682 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Convert CLongBinary to CString? How to copy the m_hData of the ClongBinary to CString with out losing any characters in it..
Posted 29-Jul-11 1:26am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

CLongBinary[^] is just an array of bytes so there is no standard way of converting your object to a string. You will need to write your own conversion routine, which will depend on the exact form of the output that you want to produce.
Gokulnath007 29-Jul-11 8:20am
I have tried using the m_hData directly to set in the blob field, but while opening the recordset, it takes so much time. While executing AFX_ODBC_CALL(::SQLExecute(m_hstmt)); statement, it takes too much time and sometimes the system hangs for this..
Richard MacCutchan 29-Jul-11 8:33am
Sorry, but I don't understand what this has to do with your question. Are you having problems reading or writing the blob data? If so I would suggest you open a new question and include full details of your objects and show the code that is causing the problem.
SAKryukov 2-Aug-11 4:37am
Exactly, a 5.
Richard MacCutchan 2-Aug-11 15:47pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.170813.1 | Last Updated 29 Jul 2011
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100