Click here to Skip to main content
11,920,211 members (44,862 online)
Rate this:
Please Sign up or sign in to vote.
See more: VC8.0 C++
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 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
0 OriginalGriff 455
1 phil.o 170
2 CPallini 150
4 F-ES Sitecore 130
0 OriginalGriff 6,778
1 KrunalRohit 4,495
2 Sergey Alexandrovich Kryukov 3,153
3 George Jonsson 2,810
4 Suvendu Shekhar Giri 2,181

Advertise | Privacy | Mobile
Web02 | 2.8.151120.1 | 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