Click here to Skip to main content
Rate this: bad
good
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
good
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.
  Permalink  
Comments
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.
--SA
Richard MacCutchan at 2-Aug-11 15:47pm
   
Thanks.

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

  Print Answers RSS
0 OriginalGriff 200
1 George Jonsson 175
2 Kornfeld Eliyahu Peter 169
3 PIEBALDconsult 110
4 Richard MacCutchan 85
0 OriginalGriff 6,080
1 DamithSL 4,648
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,624
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 29 Jul 2011
Copyright © CodeProject, 1999-2014
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