高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】oles problem1
ole's problem!
ole's problem!
hi, i use the following code to get ole object's data:
//to get data
......
oddbole2frameptr ptrdbole2frame = poddbent;
hglobal hmem = globalalloc(gmem_moveable|gmem_nodiscard,0);
oduint32 odlen = ptrdbole2frame->getcompounddocumentdatasize();
odflatmemstreamptr ptrmemstr = odflatmemstream::createnew(globallock(hmem),odlen) ;
ptrdbole2frame->getcompounddocument(*ptrmemstr);
.......
//
but, when running to "ptrdbole2frame->getcompounddocument(*ptrmemstr);", it throws an exception. why?
btw, i use the following code to get odoleitemhandler:
//
odoleitemhandler *pitemhanlder;
pitemhanlder = ptrdbole2frame->getitemhandler();
//
but it didn't work. it always has a assertion. why?
is there a example about to get ole object's data?
last edited by pqcyy; 16th june 2005 at 06:25 pmfff">.
|