![]() |
【转帖】setupactivelayoutviews Problem
setupactivelayoutviews problem...
setupactivelayoutviews problem... hi, i'm trying to render a dwg file in an mfc application where i cannot inherit cview class from odgicontextfordbdatabase. i'm setting the dd such to render on the view using wingdi.gs. the problem is in initialization of odgsdevice. i'm following the code of csingledoc example, but i don't know how can i change the code line code: m_pdevice = oddbgsmanager::setupactivelayoutviews(m_pdevice, this); where "this" is a class inherithed from mfc cview and odgicontextfordbdatabase. is there a work-around for this obstacle? in simple words i have to tell to dwgdirect to render on my cview using wingdi extension... thank you in advance, myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== last edited by myzhar; 8th february 2006 at 03:45 amfff">. myzhar # 8th february 2006, 06:00 am registered user join date: feb 2005 posts: 30 hi, i think you should add a method to your class inherithed from mfc cview : //here m_pview is a class that inherit from cview and of course odgicontextfordbdatabase odgicontextfordbdatabase * pctx = m_pview->getcontext(); //getcontext method : //odgicontextfordbdatabase * getcontext() {return static_cast<odgicontextfordbdatabase*>(this);} //and then m_device = oddbgsmanager::setuplayoutviews(m_curlayout,pdevic e, pctx); a++ kage # 8th february 2006, 06:18 am registered user join date: feb 2006 location: pisa posts: 69 quote: originally posted by kage //here m_pview is a class that inherit from cview and of course odgicontextfordbdatabase i cannot inherit my view class from odgicontextfordbdatabase. i'm making a kind of plug-in and i cannot modify original code. i'm then trying to find a way to associate my view class to odgicontextfordbdatabase in another way thank you, myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== myzhar # 8th february 2006, 06:25 am registered user join date: feb 2005 posts: 30 hi, can you explain me why you can't inherit your class from odgicontextfordbdatabase ?? i did, maybe i can help you... kage # 8th february 2006, 06:26 am registered user join date: feb 2006 location: pisa posts: 69 simply because my chief does not want that i change original code myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== myzhar none ? | ? thread tools display modes linear mode search this thread rate this thread excellent good average bad terrible posting rules you may post new threads you may post replies you may post attachments you may edit your posts is on are on code is off html code is off forum jump user control panel private messages subscriptions who's online search forums forums home general topics news questions and remarks business issues industry commentary general software issues documentation issues future directions dwg libraries dwgdirect.net dwgdirect, c++ version dwgdirectx, activex version adtdirect/c3ddirect opendwg toolkit/viewkit dgn libraries dgndirect, c++ version (2.x+) dgndirect libraries (legacy 0.99xx) all times are gmt -7. the time now is 11:35 pmfff">. - - - copyright ?2000 - 2009, jelsoft enterprises ltd. copyright 1998-2008 open design alliance inc. hi, i think you should add a method to your class inherithed from mfc cview : //here m_pview is a class that inherit from cview and of course odgicontextfordbdatabase odgicontextfordbdatabase * pctx = m_pview->getcontext(); //getcontext method : //odgicontextfordbdatabase * getcontext() {return static_cast<odgicontextfordbdatabase*>(this);} //and then m_device = oddbgsmanager::setuplayoutviews(m_curlayout,pdevic e, pctx); a++ quote: originally posted by kage //here m_pview is a class that inherit from cview and of course odgicontextfordbdatabase i cannot inherit my view class from odgicontextfordbdatabase. i'm making a kind of plug-in and i cannot modify original code. i'm then trying to find a way to associate my view class to odgicontextfordbdatabase in another way thank you, myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== hi, can you explain me why you can't inherit your class from odgicontextfordbdatabase ?? i did, maybe i can help you... simply because my chief does not want that i change original code myzhar ============== ing. walter lucetti geomind srl pisa - italy ============== |
| 所有的时间均为北京时间。 现在的时间是 07:06 PM. |