Click here to Skip to main content
16,016,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exception handling or return value Pin
Raj Prathap21-May-07 18:22
Raj Prathap21-May-07 18:22 
GeneralRe: Exception handling or return value Pin
Nelek21-May-07 19:53
protectorNelek21-May-07 19:53 
GeneralRe: Exception handling or return value Pin
CPallini21-May-07 20:46
mveCPallini21-May-07 20:46 
GeneralRe: Exception handling or return value Pin
Raj Prathap21-May-07 23:17
Raj Prathap21-May-07 23:17 
QuestionGroupbox flickering Pin
baerten21-May-07 2:31
baerten21-May-07 2:31 
QuestionHow to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 2:15
lilnelse21-May-07 2:15 
QuestionRe: How to insert a binary file into SQL database, via ADO Pin
David Crow21-May-07 3:03
David Crow21-May-07 3:03 
AnswerRe: How to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 16:56
lilnelse21-May-07 16:56 
Thanks for suggestions

I've stepped into it, and find something seems wrong at

if(pBuf)
{
rgsabound[0].lLbound = 0;
rgsabound[0].cElements = nFileLen;
psa = SafeArrayCreate(VT_UI1, 1, rgsabound);
for (long i = 0; i < nFileLen; i++)
SafeArrayPutElement (psa, &i, pBuf++);
varBLOB.vt = VT_ARRAY | VT_UI1;
varBLOB.parray = psa;
m_pRecordset->GetFields()->GetItem("mol")->AppendChunk(varBLOB);
}

becouse when i did as follow:

m_pRecordset->Update();
long lDataSize = m_pRecordset->GetFields()->GetItem("mol")->ActualSize;

I find that the value of lDataSize is alwayse -1
do you know the reason, please?

thanks a lot

regards.
Li

Hi, there.

AnswerRe: How to insert a binary file into SQL database, via ADO Pin
lilnelse21-May-07 17:05
lilnelse21-May-07 17:05 
QuestionRead Excel file Pin
Syamlal S Nair21-May-07 2:14
Syamlal S Nair21-May-07 2:14 
AnswerRe: Read Excel file Pin
David Crow21-May-07 3:08
David Crow21-May-07 3:08 
AnswerRe: Read Excel file Pin
Hamid_RT21-May-07 6:54
Hamid_RT21-May-07 6:54 
AnswerRe: Read Excel file Pin
Sameerkumar Namdeo21-May-07 21:07
Sameerkumar Namdeo21-May-07 21:07 
QuestionVC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
Joan M21-May-07 2:02
professionalJoan M21-May-07 2:02 
AnswerRe: VC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
JudyL_MD21-May-07 2:10
JudyL_MD21-May-07 2:10 
AnswerRe: VC6 to VC8: how to set two libs in the VC8 to be linked with the project? Pin
Cedric Moonen21-May-07 2:11
Cedric Moonen21-May-07 2:11 
QuestionHow to retain the values Pin
jannathali21-May-07 1:56
jannathali21-May-07 1:56 
AnswerRe: How to retain the values Pin
Cedric Moonen21-May-07 1:58
Cedric Moonen21-May-07 1:58 
AnswerRe: How to retain the values Pin
CPallini21-May-07 2:19
mveCPallini21-May-07 2:19 
QuestionRe: How to retain the values Pin
Roger Stoltz21-May-07 2:27
Roger Stoltz21-May-07 2:27 
AnswerRe: How to retain the values Pin
Hamid_RT21-May-07 6:45
Hamid_RT21-May-07 6:45 
QuestionCListCtrl Selection of Item Problem Pin
Aamol M21-May-07 1:35
Aamol M21-May-07 1:35 
AnswerRe: CListCtrl Selection of Item Problem Pin
GuyM21-May-07 1:46
GuyM21-May-07 1:46 
GeneralRe: CListCtrl Selection of Item Problem Pin
Aamol M21-May-07 2:32
Aamol M21-May-07 2:32 
GeneralRe: CListCtrl Selection of Item Problem Pin
David Crow21-May-07 3:20
David Crow21-May-07 3:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.