![]() |
【转帖】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">. |
所有的时间均为北京时间。 现在的时间是 10:26 PM. |