Click here to Skip to main content
11,412,159 members (62,363 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: VC8.0
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 2: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 at 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 at 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 at 2-Aug-11 4:37am
Exactly, a 5.
Richard MacCutchan at 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
0 OriginalGriff 348
1 Sascha Lefévre 175
2 ProgramFOX 130
3 Maciej Los 110
4 Sergey Alexandrovich Kryukov 95
0 Sergey Alexandrovich Kryukov 8,980
1 OriginalGriff 7,263
2 Maciej Los 3,500
3 Abhinav S 3,248
4 Peter Leow 3,059

Advertise | Privacy | Mobile
Web01 | 2.8.150414.5 | Last Updated 29 Jul 2011
Copyright © CodeProject, 1999-2015
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