![]() |
【转帖】odqueryximpl
odqueryximpl...
odqueryximpl... i have some code that is based of the odvectorizeex example... i am trying to upgrade to 1.13 and for some reason that is beyond me after my code (successfully) creates the device it fails inside the call to setupactivelayoutviews... needless to say this was working in my code that used a prior version the libraries... as far as i can tell it dies in odqueryximpl where it tries to get the desc(). any ideas? code: odgicontextfordbdatabaseptr pdwgcontext = odgicontextfordbdatabase::createobject(); // create the custom rendering device and set the output stream for the device. chspdfdeviceptr pdev = chspdfdevice::createobject(chspdfdevice::k2ddevice); pdev->m_ppdf=ppdf; pdev->m_pcad=this; pdev->m_idrawnumber=0; pdev->m_clrbackground=color; // set the database to be vectorized. pdwgcontext->setdatabase(theapp.m_pdb); // prepare the device to render the active layout in this database. pdev = oddbgsmanager::setupactivelayoutviews(pdev, pdwgcontext); // set the screen size for the generated geometry. odgsdcrect screenrect(odgsdcpoint(0, 0), odgsdcpoint(dpagewidth,dpageheight)); pdev->onsize(screenrect); // initiate vectorization. pdev->update(&screenrect); last edited by tillerstarredwards; 19th april 2005 at 01:44 pmfff">. reason: left out some details... right you are! quote: originally posted by dmitry a. novikov hi, it seems you should call odgsinitialize() before creating your device, also don't forget to call odrxuninitialize() before exiting. see updated odvectorizeex example code for details. thanks much! tillerstarredwards |
所有的时间均为北京时间。 现在的时间是 05:46 AM. |