几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】what Is Required Before Calling Setupactivelayoutviews (http://www.dimcax.com/hust/showthread.php?t=19075)

yang686526 2009-05-07 06:49 PM

【转帖】what Is Required Before Calling Setupactivelayoutviews
 
what is required before calling setupactivelayoutviews
what is required before calling setupactivelayoutviews
i am working on a mfc function that creates a bitmap file from a viewed drawing. i have examined cdwgviewer::preparebitmap( ... ) in the odamfcapp sample project. my function is a member of a class derived from cview and odgicontextfordbdatabase just as in the example program. when i try to execute the following instruction-
pdevice = oddbgsmanager::setupactivelayoutviews(pdevice, this);
i get an exception. i believe that the pdevice argument is valid. (i created it with the same code as in the example.) i suspect that i must initialize something in the odgicontextfordbdatabase part of my class.
can anyone tell me what the requirements are before calling the above function or where to look for the answer?
problem solved.
as it turns out the problem was a invalid device pointer.
thank anyway to anyone who spent time thinking about this.


所有的时间均为北京时间。 现在的时间是 08:39 PM.